mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-24 15:55:17 -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
|
@ -52,7 +52,7 @@ func NewValidK8sVersion(k8sVersion string, strict bool) (ValidK8sVersion, error)
|
|||
supported = isSupportedK8sVersion(k8sVersion)
|
||||
}
|
||||
if !supported {
|
||||
return "", fmt.Errorf("invalid Kubernetes version: %s", k8sVersion)
|
||||
return "", fmt.Errorf("invalid Kubernetes version: %s; supported versions are %v", k8sVersion, SupportedK8sVersions())
|
||||
}
|
||||
if !strict {
|
||||
k8sVersion, _ = supportedVersionForMajorMinor(k8sVersion)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue