We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa6dc32 commit e7260abCopy full SHA for e7260ab
api/v1alpha7/openstackcluster_webhook.go
@@ -110,6 +110,11 @@ func (r *OpenStackCluster) ValidateUpdate(oldRaw runtime.Object) error {
110
r.Spec.APIServerFixedIP = ""
111
}
112
113
+ // If API Server floating IP is disabled, allow the change of the API Server port only for the first time.
114
+ if old.Spec.DisableAPIServerFloatingIP && old.Spec.APIServerPort == 0 && r.Spec.APIServerPort > 0 {
115
+ r.Spec.APIServerPort = 0
116
+ }
117
+
118
// Allow changes to the bastion spec.
119
old.Spec.Bastion = &Bastion{}
120
r.Spec.Bastion = &Bastion{}
0 commit comments