Skip to content

Commit a3bce87

Browse files
committed
fix: codespell
1 parent 5dc037a commit a3bce87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exp/api/v1beta1/gcpmanagedcontrolplane_webhook.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)