Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apis/v1alpha1/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ type AdminNetworkPolicyIngressPeer struct {
}

// CIDR is an IP address range in CIDR notation (for example, "10.0.0.0/8" or "fd00::/8").
// +kubebuilder:validation:XValidation:rule="isCIDR(self)",message="Invalid CIDR format provided"
// +kubebuilder:validation:XValidation:rule="isCIDR(self) && cidr(self) == cidr(self).masked()",message="Invalid CIDR format provided"
// +kubebuilder:validation:MaxLength=43
type CIDR string
2 changes: 1 addition & 1 deletion apis/v1alpha2/clusternetworkpolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ type PortRange struct {

// CIDR is an IP address range in CIDR notation
// (for example, "10.0.0.0/8" or "fd00::/8").
// +kubebuilder:validation:XValidation:rule="isCIDR(self)",message="Invalid CIDR format provided"
// +kubebuilder:validation:XValidation:rule="isCIDR(self) && cidr(self) == cidr(self).masked()",message="Invalid CIDR format provided"
// +kubebuilder:validation:MaxLength=43
type CIDR string

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ spec:
type: string
x-kubernetes-validations:
- message: Invalid CIDR format provided
rule: isCIDR(self)
rule: isCIDR(self) && cidr(self) == cidr(self).masked()
maxItems: 25
minItems: 1
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ spec:
type: string
x-kubernetes-validations:
- message: Invalid CIDR format provided
rule: isCIDR(self)
rule: isCIDR(self) && cidr(self) == cidr(self).masked()
maxItems: 25
minItems: 1
type: array
Expand Down
2 changes: 1 addition & 1 deletion hack/crd-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ trap cleanup INT TERM
res=0

# Install kind
(go install sigs.k8s.io/kind@v0.25.0) || res=$?
(go install sigs.k8s.io/kind@v0.31.0) || res=$?

# Create cluster
KIND_CREATE_ATTEMPTED=true
Expand Down
Loading