Skip to content

Commit

Permalink
Merge pull request #207 from FabianKramm/main
Browse files Browse the repository at this point in the history
fix: only allow v1.22 k0s
  • Loading branch information
FabianKramm authored Nov 26, 2021
2 parents 57a5506 + 021c28c commit 73979f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/vclusterctl/cmd/app/create/values/k0s.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (

var K0SVersionMap = map[string]string{
"1.22": "k0sproject/k0s:v1.22.4-k0s.0",
"1.21": "k0sproject/k0s:v1.21.7-k0s.0",
"1.20": "k0sproject/k0s:v1.20.6-k0s.0",
}

func getDefaultK0SReleaseValues(client kubernetes.Interface, createOptions *create.CreateOptions, log log.Logger) (string, error) {
Expand All @@ -25,8 +23,8 @@ func getDefaultK0SReleaseValues(client kubernetes.Interface, createOptions *crea
log.Infof("officially unsupported host server version %s, will fallback to virtual cluster version v1.22", serverVersionString)
image = K0SVersionMap["1.22"]
} else {
log.Infof("officially unsupported host server version %s, will fallback to virtual cluster version v1.20", serverVersionString)
image = K0SVersionMap["1.20"]
log.Infof("officially unsupported host server version %s, will fallback to virtual cluster version v1.22", serverVersionString)
image = K0SVersionMap["1.22"]
}
}

Expand Down

0 comments on commit 73979f0

Please sign in to comment.