@@ -91,12 +91,12 @@ func (r *GCPManagedControlPlane) ValidateCreate() (admission.Warnings, error) {
9191
9292 if r .Spec .EnableAutopilot && r .Spec .LoggingService != nil {
9393 allErrs = append (allErrs , field .Invalid (field .NewPath ("spec" , "LoggingService" ),
94- r .Spec .LoggingService , "cant be set when autopilot is enabled" ))
94+ r .Spec .LoggingService , "can't be set when autopilot is enabled" ))
9595 }
9696
9797 if r .Spec .EnableAutopilot && r .Spec .MonitoringService != nil {
9898 allErrs = append (allErrs , field .Invalid (field .NewPath ("spec" , "MonitoringService" ),
99- r .Spec .LoggingService , "cant be set when autopilot is enabled" ))
99+ r .Spec .LoggingService , "can't be set when autopilot is enabled" ))
100100 }
101101
102102 if len (allErrs ) == 0 {
@@ -142,12 +142,12 @@ func (r *GCPManagedControlPlane) ValidateUpdate(oldRaw runtime.Object) (admissio
142142
143143 if old .Spec .EnableAutopilot && r .Spec .LoggingService != nil {
144144 allErrs = append (allErrs , field .Invalid (field .NewPath ("spec" , "LoggingService" ),
145- r .Spec .LoggingService , "cant be set when autopilot is enabled" ))
145+ r .Spec .LoggingService , "can't be set when autopilot is enabled" ))
146146 }
147147
148148 if old .Spec .EnableAutopilot && r .Spec .MonitoringService != nil {
149149 allErrs = append (allErrs , field .Invalid (field .NewPath ("spec" , "MonitoringService" ),
150- r .Spec .LoggingService , "cant be set when autopilot is enabled" ))
150+ r .Spec .LoggingService , "can't be set when autopilot is enabled" ))
151151 }
152152
153153 if len (allErrs ) == 0 {
0 commit comments