Skip to content

Commit d6deef7

Browse files
feat: Allow the change on OpenstackCluster's spec.allowAllInClusterTraffic
fix: kubernetes-sigs#1653
1 parent cc25810 commit d6deef7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/v1alpha7/openstackcluster_webhook.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ func (r *OpenStackCluster) ValidateUpdate(oldRaw runtime.Object) (admission.Warn
130130
old.Spec.ControlPlaneAvailabilityZones = []string{}
131131
r.Spec.ControlPlaneAvailabilityZones = []string{}
132132

133+
// Allow change to the allowAllInClusterTraffic.
134+
old.Spec.allowAllInClusterTraffic = false
135+
r.Spec.allowAllInClusterTraffic = false
136+
133137
if !reflect.DeepEqual(old.Spec, r.Spec) {
134138
allErrs = append(allErrs, field.Forbidden(field.NewPath("spec"), "cannot be modified"))
135139
}

0 commit comments

Comments
 (0)