diff --git a/charts/spiderpool/crds/spiderpool.spidernet.io_spiderippools.yaml b/charts/spiderpool/crds/spiderpool.spidernet.io_spiderippools.yaml index fa480693e0..1731f12dec 100644 --- a/charts/spiderpool/crds/spiderpool.spidernet.io_spiderippools.yaml +++ b/charts/spiderpool/crds/spiderpool.spidernet.io_spiderippools.yaml @@ -275,7 +275,7 @@ spec: vlan: default: 0 format: int64 - maximum: 4095 + maximum: 4094 minimum: 0 type: integer required: diff --git a/pkg/k8s/apis/spiderpool.spidernet.io/v2beta1/spiderippool_types.go b/pkg/k8s/apis/spiderpool.spidernet.io/v2beta1/spiderippool_types.go index 5b4dba8e2a..34fc06cce6 100644 --- a/pkg/k8s/apis/spiderpool.spidernet.io/v2beta1/spiderippool_types.go +++ b/pkg/k8s/apis/spiderpool.spidernet.io/v2beta1/spiderippool_types.go @@ -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"`