@@ -4,10 +4,10 @@ import (
44 "context"
55 "fmt"
66
7- "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
87 anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
98 "github.com/aws/eks-anywhere/pkg/config"
109 "github.com/aws/eks-anywhere/pkg/constants"
10+ "github.com/aws/eks-anywhere/pkg/features"
1111 "github.com/aws/eks-anywhere/pkg/types"
1212 "github.com/aws/eks-anywhere/pkg/validations"
1313)
@@ -57,11 +57,19 @@ func (v *CreateValidations) PreflightValidations(ctx context.Context) []validati
5757 Err : validations .ValidateExtendedKubernetesSupport (ctx , * v .Opts .Spec .Cluster , v .Opts .ManifestReader , v .Opts .KubeClient , v .Opts .BundlesOverride ),
5858 }
5959 },
60+ func () * validations.ValidationResult {
61+ return & validations.ValidationResult {
62+ Name : "validate kubernetes version 1.33 support" ,
63+ Remediation : fmt .Sprintf ("ensure %v env variable is set" , features .K8s133SupportEnvVar ),
64+ Err : validations .ValidateK8s133Support (v .Opts .Spec ),
65+ Silent : true ,
66+ }
67+ },
6068 }
6169
6270 if len (v .Opts .Spec .VSphereMachineConfigs ) != 0 {
6371 cpRef := v .Opts .Spec .Cluster .Spec .ControlPlaneConfiguration .MachineGroupRef .Name
64- if v .Opts .Spec .VSphereMachineConfigs [cpRef ].Spec .OSFamily == v1alpha1 .Bottlerocket {
72+ if v .Opts .Spec .VSphereMachineConfigs [cpRef ].Spec .OSFamily == anywherev1 .Bottlerocket {
6573 createValidations = append (createValidations ,
6674 func () * validations.ValidationResult {
6775 return & validations.ValidationResult {
0 commit comments