mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-11 06:02:41 -05:00
cli: store kubernetes version as strong type in config (#2287)
Co-authored-by: Otto Bittner <cobittner@posteo.net> Co-authored-by: 3u13r <lc@edgeless.systems>
This commit is contained in:
parent
348418a4a1
commit
22c2a73ae2
23 changed files with 293 additions and 182 deletions
|
|
@ -21,6 +21,7 @@ import (
|
|||
"github.com/edgelesssys/constellation/v2/internal/file"
|
||||
"github.com/edgelesssys/constellation/v2/internal/role"
|
||||
"github.com/edgelesssys/constellation/v2/internal/semver"
|
||||
"github.com/edgelesssys/constellation/v2/internal/versions"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
@ -335,7 +336,7 @@ func V3ToV4(path string, fileHandler file.Handler) error {
|
|||
cfgV4.Version = config.Version4
|
||||
cfgV4.Image = cfgV3.Image
|
||||
cfgV4.Name = cfgV3.Name
|
||||
cfgV4.KubernetesVersion = cfgV3.KubernetesVersion
|
||||
cfgV4.KubernetesVersion = versions.ValidK8sVersion(cfgV3.KubernetesVersion)
|
||||
cfgV4.MicroserviceVersion = cfgV3.MicroserviceVersion
|
||||
cfgV4.DebugCluster = cfgV3.DebugCluster
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue