mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-09 15:32:46 -04:00
todo responsibilities and cleanup (#1837)
* chore: add TODO responsibilities * chore: remove not needed TODOs * chore: remove outdated migrations * chore: remove resolved goleak exception * chore: remove not needed cosign env * config: add link to our Azure snp docs
This commit is contained in:
parent
0c13f3ed8d
commit
e0285c122e
31 changed files with 40 additions and 104 deletions
|
@ -391,26 +391,7 @@ func getPlaceholderEntries(m measurements.M) []uint32 {
|
|||
}
|
||||
|
||||
func (c *Config) validateK8sVersion(fl validator.FieldLevel) bool {
|
||||
// TODO: v2.7: do not create extendedVersion variable and directly validate field from fl.
|
||||
// This patch is for compatibility with configs from v2.5 only. Configs specifying k8s
|
||||
// the version as MAJOR.MINOR automatically get extended with the respective patch version.
|
||||
configVersion := compatibility.EnsurePrefixV(fl.Field().String())
|
||||
if !semver.IsValid(configVersion) {
|
||||
return false
|
||||
}
|
||||
|
||||
extendedVersion := K8sVersionFromMajorMinor(semver.MajorMinor(configVersion))
|
||||
if extendedVersion == "" {
|
||||
return false
|
||||
}
|
||||
|
||||
valid := versions.IsSupportedK8sVersion(extendedVersion)
|
||||
if !valid {
|
||||
return false
|
||||
}
|
||||
|
||||
c.KubernetesVersion = extendedVersion
|
||||
return true
|
||||
return versions.IsSupportedK8sVersion(compatibility.EnsurePrefixV(fl.Field().String()))
|
||||
}
|
||||
|
||||
// K8sVersionFromMajorMinor takes a semver in format MAJOR.MINOR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue