mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
deps: support Kubernetes 1.28 (#2242)
This commit is contained in:
parent
38dcb3dbab
commit
8325f99b09
7 changed files with 134 additions and 129 deletions
|
@ -642,12 +642,12 @@ func (c *Config) validateK8sVersion(fl validator.FieldLevel) bool {
|
|||
// supported patch version as PATCH.
|
||||
func K8sVersionFromMajorMinor(version string) string {
|
||||
switch version {
|
||||
case semver.MajorMinor(string(versions.V1_25)):
|
||||
return string(versions.V1_25)
|
||||
case semver.MajorMinor(string(versions.V1_26)):
|
||||
return string(versions.V1_26)
|
||||
case semver.MajorMinor(string(versions.V1_27)):
|
||||
return string(versions.V1_27)
|
||||
case semver.MajorMinor(string(versions.V1_28)):
|
||||
return string(versions.V1_28)
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue