From c0c0399f41f9578f8a24a9dc9210437c0b740b9d Mon Sep 17 00:00:00 2001 From: rabi Date: Mon, 18 Nov 2024 12:35:47 +0530 Subject: [PATCH] Make ServiceNetwork optional in IPSetReservration jira: https://issues.redhat.com/browse/OSPRH-11679 Signed-off-by: rabi --- apis/bases/network.openstack.org_ipsets.yaml | 1 - apis/network/v1beta1/ipset_types.go | 1 + config/crd/bases/network.openstack.org_ipsets.yaml | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apis/bases/network.openstack.org_ipsets.yaml b/apis/bases/network.openstack.org_ipsets.yaml index cd6c2fc3..d33687ee 100644 --- a/apis/bases/network.openstack.org_ipsets.yaml +++ b/apis/bases/network.openstack.org_ipsets.yaml @@ -195,7 +195,6 @@ spec: - address - dnsDomain - network - - serviceNetwork - subnet type: object type: array diff --git a/apis/network/v1beta1/ipset_types.go b/apis/network/v1beta1/ipset_types.go index 81eb7b51..d0ee8483 100644 --- a/apis/network/v1beta1/ipset_types.go +++ b/apis/network/v1beta1/ipset_types.go @@ -83,6 +83,7 @@ type IPSetReservation struct { // DNSDomain of the subnet DNSDomain string `json:"dnsDomain"` + // +kubebuilder:validation:Optional // ServiceNetwork mapping ServiceNetwork ServiceNetNameStr `json:"serviceNetwork"` } diff --git a/config/crd/bases/network.openstack.org_ipsets.yaml b/config/crd/bases/network.openstack.org_ipsets.yaml index cd6c2fc3..d33687ee 100644 --- a/config/crd/bases/network.openstack.org_ipsets.yaml +++ b/config/crd/bases/network.openstack.org_ipsets.yaml @@ -195,7 +195,6 @@ spec: - address - dnsDomain - network - - serviceNetwork - subnet type: object type: array