Skip to content

Commit

Permalink
Increase version constraint for Azure with in-tree provider (#3160)
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Mudrinić <[email protected]>
  • Loading branch information
xmudrii authored Apr 24, 2024
1 parent 41124e0 commit dc8bb64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/apis/kubeone/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ func ValidateKubernetesSupport(c kubeoneapi.KubeOneCluster, fldPath *field.Path)
case c.CloudProvider.AWS != nil && v.Minor() >= 27:
// The in-tree cloud provider for AWS has been removed in Kubernetes 1.27.
allErrs = append(allErrs, field.Invalid(fldPath.Child("cloudProvider").Child("external"), c.CloudProvider.External, "kubernetes 1.27 and newer doesn't support in-tree cloud provider with aws"))
case c.CloudProvider.Azure != nil && v.Minor() >= 27:
// The in-tree cloud provider for Azure has been removed in Kubernetes 1.27.
allErrs = append(allErrs, field.Invalid(fldPath.Child("cloudProvider").Child("external"), c.CloudProvider.External, "kubernetes 1.27 and newer doesn't support in-tree cloud provider with azure"))
case c.CloudProvider.Azure != nil && v.Minor() >= 29:
// The in-tree cloud provider for Azure has been removed in Kubernetes 1.29.
allErrs = append(allErrs, field.Invalid(fldPath.Child("cloudProvider").Child("external"), c.CloudProvider.External, "kubernetes 1.29 and newer doesn't support in-tree cloud provider with azure"))
case c.CloudProvider.GCE != nil && v.Minor() >= 29:
// The in-tree cloud provider for GCE has been removed in Kubernetes 1.29.
allErrs = append(allErrs, field.Invalid(fldPath.Child("cloudProvider").Child("external"), c.CloudProvider.External, "kubernetes 1.29 and newer doesn't support in-tree cloud provider with gce"))
Expand Down

0 comments on commit dc8bb64

Please sign in to comment.