You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consolidate the various flat API server fields (apiServerFloatingIP,
apiServerFixedIP, apiServerPort, disableAPIServerFloatingIP, and
apiServerLoadBalancer) into a single structured spec.apiServer object,
with apiServerLoadBalancer renamed to managedLoadBalancer within it.
Includes conversion from v1beta1 and updated webhook validation.
Copy file name to clipboardExpand all lines: api/v1beta2/openstackcluster_types.go
+74-42Lines changed: 74 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ const (
31
31
32
32
// OpenStackClusterSpec defines the desired state of OpenStackCluster.
33
33
// +kubebuilder:validation:XValidation:rule="has(self.disableExternalNetwork) && self.disableExternalNetwork ? !has(self.bastion) || !has(self.bastion.floatingIP) : true",message="bastion floating IP cannot be set when disableExternalNetwork is true"
34
-
// +kubebuilder:validation:XValidation:rule="has(self.disableExternalNetwork) && self.disableExternalNetwork ? has(self.disableAPIServerFloatingIP) && self.disableAPIServerFloatingIP : true",message="disableAPIServerFloatingIP cannot be false when disableExternalNetwork is true"
34
+
// +kubebuilder:validation:XValidation:rule="has(self.disableExternalNetwork) && self.disableExternalNetwork ? has(self.apiServer) && has(self.apiServer.disableFloatingIP) && self.apiServer.disableFloatingIP : true",message="apiServer.disableFloatingIP cannot be false when disableExternalNetwork is true"
35
35
typeOpenStackClusterSpecstruct {
36
36
// managedSubnets describe OpenStack Subnets to be created. Cluster actuator will create a network,
37
37
// subnets with the defined CIDR, and a router connected to these subnets. Currently only one IPv4
@@ -94,48 +94,10 @@ type OpenStackClusterSpec struct {
0 commit comments