Skip to content

Commit

Permalink
fix: codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweaver87 committed Jul 25, 2024
1 parent 31b26ee commit b9ec121
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exp/api/v1beta1/gcpmanagedcontrolplane_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ func (r *GCPManagedControlPlane) ValidateCreate() (admission.Warnings, error) {

if r.Spec.EnableAutopilot && r.Spec.LoggingService != nil {
allErrs = append(allErrs, field.Invalid(field.NewPath("spec", "LoggingService"),
r.Spec.LoggingService, "cant be set when autopilot is enabled"))
r.Spec.LoggingService, "can't be set when autopilot is enabled"))
}

if r.Spec.EnableAutopilot && r.Spec.MonitoringService != nil {
allErrs = append(allErrs, field.Invalid(field.NewPath("spec", "MonitoringService"),
r.Spec.LoggingService, "cant be set when autopilot is enabled"))
r.Spec.LoggingService, "can't be set when autopilot is enabled"))
}

if len(allErrs) == 0 {
Expand Down Expand Up @@ -142,12 +142,12 @@ func (r *GCPManagedControlPlane) ValidateUpdate(oldRaw runtime.Object) (admissio

if old.Spec.EnableAutopilot && r.Spec.LoggingService != nil {
allErrs = append(allErrs, field.Invalid(field.NewPath("spec", "LoggingService"),
r.Spec.LoggingService, "cant be set when autopilot is enabled"))
r.Spec.LoggingService, "can't be set when autopilot is enabled"))
}

if old.Spec.EnableAutopilot && r.Spec.MonitoringService != nil {
allErrs = append(allErrs, field.Invalid(field.NewPath("spec", "MonitoringService"),
r.Spec.LoggingService, "cant be set when autopilot is enabled"))
r.Spec.LoggingService, "can't be set when autopilot is enabled"))
}

if len(allErrs) == 0 {
Expand Down

0 comments on commit b9ec121

Please sign in to comment.