Skip to content

Commit 2a1d615

Browse files
Merge pull request #2692 from ormergi/ovn-k-cudn-localnet-ex-subnets-valid
OCPBUGS-55285: bindata,ovn-k,cudn: Validate loclanet topology's excludeSubnet match specified subnets
2 parents 558108a + 197d806 commit 2a1d615

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bindata/network/ovn-kubernetes/common/001-crd.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4032,6 +4032,11 @@ spec:
40324032
IPv6 subnet is used
40334033
rule: '!has(self.subnets) || !has(self.mtu) || !self.subnets.exists_one(i,
40344034
isCIDR(i) && cidr(i).ip().family() == 6) || self.mtu >= 1280'
4035+
- fieldPath: .excludeSubnets
4036+
message: excludeSubnets must be subnetworks of the networks
4037+
specified in the subnets field
4038+
rule: '!has(self.excludeSubnets) || self.excludeSubnets.all(e,
4039+
self.subnets.exists(s, cidr(s).containsCIDR(cidr(e))))'
40354040
topology:
40364041
description: |-
40374042
Topology describes network configuration.

0 commit comments

Comments
 (0)