mirror of
https://github.com/rancher/rke.git
synced 2025-09-19 18:30:38 +00:00
Only use current versions from types
This commit is contained in:
committed by
Alena Prokharchyk
parent
f53e30adec
commit
ec317d8361
@@ -403,16 +403,17 @@ func getAddonManifests(reader *bufio.Reader) ([]string, error) {
|
|||||||
|
|
||||||
func generateSystemImagesList(version string, all bool) error {
|
func generateSystemImagesList(version string, all bool) error {
|
||||||
allVersions := []string{}
|
allVersions := []string{}
|
||||||
|
currentVersionImages := make(map[string]v3.RKESystemImages)
|
||||||
for version := range v3.AllK8sVersions {
|
for version := range v3.AllK8sVersions {
|
||||||
err := util.ValidateVersion(version)
|
err := util.ValidateVersion(version)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
allVersions = append(allVersions, version)
|
allVersions = append(allVersions, version)
|
||||||
|
currentVersionImages[version] = v3.AllK8sVersions[version]
|
||||||
}
|
}
|
||||||
if all {
|
if all {
|
||||||
for version, rkeSystemImages := range v3.AllK8sVersions {
|
for version, rkeSystemImages := range currentVersionImages {
|
||||||
err := util.ValidateVersion(version)
|
err := util.ValidateVersion(version)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user