Skip to content

Commit

Permalink
Make ServiceNetwork optional in IPSetReservration
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi committed Nov 18, 2024
1 parent 47b4c2e commit c1a72fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion apis/bases/network.openstack.org_ipsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ spec:
- address
- dnsDomain
- network
- serviceNetwork
- subnet
type: object
type: array
Expand Down
5 changes: 3 additions & 2 deletions apis/network/v1beta1/ipset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ type IPSetReservation struct {
// DNSDomain of the subnet
DNSDomain string `json:"dnsDomain"`

// +kubebuilder:validation:Optional
// ServiceNetwork mapping
ServiceNetwork ServiceNetNameStr `json:"serviceNetwork"`
ServiceNetwork ServiceNetNameStr `json:"serviceNetwork" optional:"true"`
}

// IPSetStatus defines the observed state of IPSet
type IPSetStatus struct {
// Reservation
Reservation []IPSetReservation `json:"reservations,omitempty" optional:"true"`
Reservation []IPSetReservation `json:"reservations,omitempty"`

// Conditions
Conditions condition.Conditions `json:"conditions,omitempty" optional:"true"`
Expand Down
1 change: 0 additions & 1 deletion config/crd/bases/network.openstack.org_ipsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ spec:
- address
- dnsDomain
- network
- serviceNetwork
- subnet
type: object
type: array
Expand Down

0 comments on commit c1a72fe

Please sign in to comment.