Skip to content

Commit 30cd0da

Browse files
Fix typo
1 parent d6deef7 commit 30cd0da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/v1alpha7/openstackcluster_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ func (r *OpenStackCluster) ValidateUpdate(oldRaw runtime.Object) (admission.Warn
131131
r.Spec.ControlPlaneAvailabilityZones = []string{}
132132

133133
// Allow change to the allowAllInClusterTraffic.
134-
old.Spec.allowAllInClusterTraffic = false
135-
r.Spec.allowAllInClusterTraffic = false
134+
old.Spec.AllowAllInClusterTraffic = false
135+
r.Spec.AllowAllInClusterTraffic = false
136136

137137
if !reflect.DeepEqual(old.Spec, r.Spec) {
138138
allErrs = append(allErrs, field.Forbidden(field.NewPath("spec"), "cannot be modified"))

0 commit comments

Comments
 (0)