Skip to content

Commit

Permalink
Merge pull request #2058 from Icarus9913/fix/wk/ippool-crd
Browse files Browse the repository at this point in the history
fix IPPool crd wrong vlanID range
  • Loading branch information
weizhoublue authored Jul 20, 2023
2 parents 7f2b3eb + 123e6d9 commit b95dad8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ spec:
vlan:
default: 0
format: int64
maximum: 4095
maximum: 4094
minimum: 0
type: integer
required:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type IPPoolSpec struct {
Gateway *string `json:"gateway,omitempty"`

// +kubebuilder:default=0
// +kubebuilder:validation:Maximum=4095
// +kubebuilder:validation:Maximum=4094
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Optional
Vlan *int64 `json:"vlan,omitempty"`
Expand Down

0 comments on commit b95dad8

Please sign in to comment.