Skip to content

Commit 8726bea

Browse files
authored
Merge pull request #17340 from rifelpet/apiserver-cloudprovider-133
Support 1.33 pre-releases with --cloud-provider flag removal validation
2 parents fa120b3 + ac76742 commit 8726bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apis/kops/validation/legacy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func ValidateCluster(c *kops.Cluster, strict bool, vfsContext *vfs.VFSContext) f
187187
}
188188
}
189189
if c.Spec.KubeAPIServer != nil && (strict || c.Spec.KubeAPIServer.CloudProvider != "") {
190-
if k8sVersion != nil && k8sVersion.LT(semver.MustParse("1.33.0")) {
190+
if k8sVersion != nil && k8sVersion.LT(semver.MustParse("1.33.0-alpha.3")) {
191191
if c.Spec.KubeAPIServer.CloudProvider != "external" && k8sCloudProvider != c.Spec.KubeAPIServer.CloudProvider {
192192
allErrs = append(allErrs, field.Forbidden(fieldSpec.Child("kubeAPIServer", "cloudProvider"), "Did not match cluster cloudProvider"))
193193
}

0 commit comments

Comments
 (0)