mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 22:34:56 -04:00
cli: print supported k8s versions on error (#2121)
This commit is contained in:
parent
845253373d
commit
f9391ed903
2 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ func (i *initCmd) initialize(cmd *cobra.Command, newDialer func(validator atls.V
|
|||
// init only supported up-to-date versions.
|
||||
k8sVersion, err := versions.NewValidK8sVersion(compatibility.EnsurePrefixV(conf.KubernetesVersion), true)
|
||||
if err != nil {
|
||||
return fmt.Errorf("invalid Kubernetes version: %s", conf.KubernetesVersion)
|
||||
return err
|
||||
}
|
||||
i.log.Debugf("Validated k8s version as %s", k8sVersion)
|
||||
if versions.IsPreviewK8sVersion(k8sVersion) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue