Skip to content

Commit

Permalink
fix SpiderSubnet CRD vlanID (#2117)
Browse files Browse the repository at this point in the history
Signed-off-by: Icarus9913 <[email protected]>
  • Loading branch information
Icarus9913 authored Jul 31, 2023
1 parent 8087084 commit 31307a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,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 SubnetSpec 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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 31307a3

Please sign in to comment.