Skip to content

Commit aa6dc32

Browse files
committed
feat: allowing update of OpenstackCluster API server fixed IP
1 parent bc57b7f commit aa6dc32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/v1alpha7/openstackcluster_webhook.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ func (r *OpenStackCluster) ValidateUpdate(oldRaw runtime.Object) error {
105105
r.Spec.ControlPlaneEndpoint = clusterv1.APIEndpoint{}
106106
}
107107

108+
// Allow change only for the first time.
109+
if old.Spec.DisableAPIServerFloatingIP && old.Spec.APIServerFixedIP == "" {
110+
r.Spec.APIServerFixedIP = ""
111+
}
112+
108113
// Allow changes to the bastion spec.
109114
old.Spec.Bastion = &Bastion{}
110115
r.Spec.Bastion = &Bastion{}

0 commit comments

Comments
 (0)