Skip to content

Commit

Permalink
Add back enum validation for IPPool
Browse files Browse the repository at this point in the history
When running `make test`, the generated nsx.vmware.com_ippools.yaml is
different from the current one, the CRD definition misses validation.
  • Loading branch information
zhengxiexie committed Nov 22, 2023
1 parent c87fcdd commit 9738a8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apis/v1alpha2/ippool_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type IPPoolList struct {
// IPPoolSpec defines the desired state of IPPool.
type IPPoolSpec struct {
// Type defines the type of this IPPool, Public or Private.
// +kubebuilder:validation:Enum=Public;Private
// +optional
Type string `json:"type,omitempty"`
// Subnets defines set of subnets need to be allocated.
Expand Down

0 comments on commit 9738a8a

Please sign in to comment.