diff --git a/api/bases/octavia.openstack.org_octavias.yaml b/api/bases/octavia.openstack.org_octavias.yaml index 359d8fdc..c1510f4a 100644 --- a/api/bases/octavia.openstack.org_octavias.yaml +++ b/api/bases/octavia.openstack.org_octavias.yaml @@ -124,6 +124,7 @@ spec: type: string type: array createDefaultLbMgmtNetwork: + default: true description: CreateDefaultLbMgmtNetwork - when True, octavia-operator creates a Management Network for the default Availability Zone of the control plane. Can be set to false when deploying OpenStack @@ -136,6 +137,7 @@ spec: Attachment Definition type: string manageLbMgmtNetworks: + default: true description: ManageLbMgmtNetworks - when True, octavia-operator creates the Neutron resources needed for its Management Network type: boolean diff --git a/api/v1beta1/octavia_types.go b/api/v1beta1/octavia_types.go index b3d46ebe..da3c26fe 100644 --- a/api/v1beta1/octavia_types.go +++ b/api/v1beta1/octavia_types.go @@ -230,10 +230,12 @@ type PasswordSelector struct { // OctaviaLbMgmtNetworks Settings for Octavia management networks type OctaviaLbMgmtNetworks struct { // +kubebuilder:validation:Optional + // +kubebuilder:default=true // ManageLbMgmtNetworks - when True, octavia-operator creates the Neutron resources needed for its Management Network ManageLbMgmtNetworks bool `json:"manageLbMgmtNetworks"` // +kubebuilder:validation:Optional + // +kubebuilder:default=true // CreateDefaultLbMgmtNetwork - when True, octavia-operator creates a // Management Network for the default Availability Zone of the control // plane. Can be set to false when deploying OpenStack in DCN mode. diff --git a/config/crd/bases/octavia.openstack.org_octavias.yaml b/config/crd/bases/octavia.openstack.org_octavias.yaml index 359d8fdc..c1510f4a 100644 --- a/config/crd/bases/octavia.openstack.org_octavias.yaml +++ b/config/crd/bases/octavia.openstack.org_octavias.yaml @@ -124,6 +124,7 @@ spec: type: string type: array createDefaultLbMgmtNetwork: + default: true description: CreateDefaultLbMgmtNetwork - when True, octavia-operator creates a Management Network for the default Availability Zone of the control plane. Can be set to false when deploying OpenStack @@ -136,6 +137,7 @@ spec: Attachment Definition type: string manageLbMgmtNetworks: + default: true description: ManageLbMgmtNetworks - when True, octavia-operator creates the Neutron resources needed for its Management Network type: boolean diff --git a/config/samples/octavia_v1beta1_octavia.yaml b/config/samples/octavia_v1beta1_octavia.yaml index 93155e4c..4680e6eb 100644 --- a/config/samples/octavia_v1beta1_octavia.yaml +++ b/config/samples/octavia_v1beta1_octavia.yaml @@ -10,6 +10,9 @@ spec: rabbitMqClusterName: rabbitmq secret: osp-secret preserveJobs: false + lbMgmtNetwork: + availabilityZones: + - zone-1 customServiceConfig: | [DEFAULT] debug = true diff --git a/tests/kuttl/common/assert_sample_deployment.yaml b/tests/kuttl/common/assert_sample_deployment.yaml index c073bdaf..bc3b2a29 100644 --- a/tests/kuttl/common/assert_sample_deployment.yaml +++ b/tests/kuttl/common/assert_sample_deployment.yaml @@ -23,6 +23,11 @@ spec: preserveJobs: false secret: osp-secret serviceUser: octavia + lbMgmtNetwork: + availabilityZones: + - zone-1 + manageLbMgmtNetworks: true + createDefaultLbMgmtNetwork: true octaviaAPI: customServiceConfig: | [DEFAULT]