-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de5c591
commit fa2d5ad
Showing
45 changed files
with
3,098 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Compatibility Matrix | ||
|
||
The following table provides a compatibility matrix of which k8s version are supported aginst which vcluster distro versions: | ||
|
||
| Vcluster Distro | k8s Host version | Distro Version | | ||
| --------------- | ---------------- | -------------------- | | ||
| eks | 1.28 | v1.28.2-eks-1-28-6 | | ||
| | 1.27 | v1.27.6-eks-1-27-13 | | ||
| | 1.26 | v1.26.9-eks-1-26-19 | | ||
| | 1.25 | v1.25.14-eks-1-25-23 | | ||
| k0s | 1.28 | v1.28.2-k0s.0 | | ||
| | 1.26 | v1.26.9-k0s.0 | | ||
| | 1.27 | v1.27.6-k0s.0 | | ||
| | 1.25 | v1.25.14-k0s.0 | | ||
| k3s | 1.28 | v1.28.2-k3s1 | | ||
| | 1.27 | v1.27.6-k3s1 | | ||
| | 1.26 | v1.26.9-k3s1 | | ||
| | 1.25 | v1.25.14-k3s1 | | ||
| k8s | 1.28 | v1.28.2 | | ||
| | 1.27 | v1.27.6 | | ||
| | 1.26 | v1.26.9 | | ||
| | 1.25 | v1.25.14 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package main | ||
|
||
import ( | ||
"os" | ||
"path/filepath" | ||
"slices" | ||
"strings" | ||
|
||
"github.com/olekukonko/tablewriter" | ||
|
||
"github.com/loft-sh/vcluster-values/values" | ||
"golang.org/x/exp/maps" | ||
) | ||
|
||
func main() { | ||
table := tablewriter.NewWriter(os.Stdout) | ||
table.SetHeader([]string{"Vcluster Distro", "k8s Host version", "Distro version"}) | ||
updateTableWithDistro(table, "k3s", values.K3SVersionMap) | ||
updateTableWithDistro(table, "k0s", values.K0SVersionMap) | ||
updateTableWithDistro(table, "k8s", values.K8SAPIVersionMap) | ||
updateTableWithDistro(table, "eks", values.EKSAPIVersionMap) | ||
table.SetAlignment(tablewriter.ALIGN_LEFT) | ||
table.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false}) | ||
table.SetCenterSeparator("|") | ||
table.Render() | ||
} | ||
|
||
func updateTableWithDistro(table *tablewriter.Table, distroName string, versionMap map[string]string) { | ||
keys := maps.Keys(versionMap) | ||
slices.Sort(keys) | ||
|
||
for i, v := range keys { | ||
name := "" | ||
if i == 0 { | ||
name = distroName | ||
} | ||
versionTag := filepath.Base(versionMap[v]) | ||
lastColon := strings.LastIndex(versionTag, ":") | ||
table.Append([]string{name, v, versionTag[lastColon+1:]}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## Compatibility Matrix | ||
|
||
The following table provides a compatibility matrix of which k8s version are supported aginst which vcluster distro versions: | ||
|
||
|
||
|
||
| Vcluster Distro | k8s Host version | Distro Version | | ||
| --------------- | ---------------- | -------------------- | | ||
| {{ .Distro }} | {{ .HostVersion}} | v1.28.2-eks-1-28-6 | | ||
| | 1.27 | v1.27.6-eks-1-27-13 | | ||
| | 1.26 | v1.26.9-eks-1-26-19 | | ||
| | 1.25 | v1.25.14-eks-1-25-23 | |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.