Skip to content

Commit 8610c0c

Browse files
committed
Fix BANP's max peer length
Signed-off-by: Surya Seetharaman <[email protected]>
1 parent 778a9a1 commit 8610c0c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

apis/v1alpha1/baselineadminnetworkpolicy_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ type BaselineAdminNetworkPolicyIngressRule struct {
119119
// Support: Core
120120
//
121121
// +kubebuilder:validation:MinItems=1
122+
// +kubebuilder:validation:MaxItems=100
122123
From []AdminNetworkPolicyPeer `json:"from"`
123124

124125
// Ports allows for matching traffic based on port and protocols.
@@ -163,6 +164,7 @@ type BaselineAdminNetworkPolicyEgressRule struct {
163164
// traffic then the specified action is applied.
164165
// This field must be defined and contain at least one item.
165166
// +kubebuilder:validation:MinItems=1
167+
// +kubebuilder:validation:MaxItems=100
166168
//
167169
// Support: Core
168170
//

config/crd/experimental/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ spec:
387387
- podSelector
388388
type: object
389389
type: object
390+
maxItems: 100
390391
minItems: 1
391392
type: array
392393
required:
@@ -661,6 +662,7 @@ spec:
661662
- podSelector
662663
type: object
663664
type: object
665+
maxItems: 100
664666
minItems: 1
665667
type: array
666668
name:

config/crd/standard/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ spec:
332332
- podSelector
333333
type: object
334334
type: object
335+
maxItems: 100
335336
minItems: 1
336337
type: array
337338
required:
@@ -555,6 +556,7 @@ spec:
555556
- podSelector
556557
type: object
557558
type: object
559+
maxItems: 100
558560
minItems: 1
559561
type: array
560562
name:

0 commit comments

Comments
 (0)