Skip to content

Commit 62b446c

Browse files
authored
Merge pull request #338 from bowei/pr-fix-comment
Update comment to match validation rules (100 => 25)
2 parents 375c8a7 + 3bbc002 commit 62b446c

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

apis/v1alpha2/clusternetworkpolicy_types.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ type ClusterNetworkPolicySpec struct {
101101
Subject ClusterNetworkPolicySubject `json:"subject"`
102102

103103
// Ingress is the list of Ingress rules to be applied to the selected pods.
104-
// A total of 100 rules will be allowed in each CNP instance.
104+
//
105+
// A maximum of 25 rules is allowed in this block.
106+
//
105107
// The relative precedence of ingress rules within a single CNP object
106108
// (all of which share the priority) will be determined by the order
107109
// in which the rule is written.
@@ -114,7 +116,9 @@ type ClusterNetworkPolicySpec struct {
114116
Ingress []ClusterNetworkPolicyIngressRule `json:"ingress,omitempty"`
115117

116118
// Egress is the list of Egress rules to be applied to the selected pods.
117-
// A total of 100 rules will be allowed in each CNP instance.
119+
//
120+
// A maximum of 25 rules is allowed in this block.
121+
//
118122
// The relative precedence of egress rules within a single CNP object
119123
// (all of which share the priority) will be determined by the order
120124
// in which the rule is written.

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ spec:
5555
egress:
5656
description: |-
5757
Egress is the list of Egress rules to be applied to the selected pods.
58-
A total of 100 rules will be allowed in each CNP instance.
58+
59+
A maximum of 25 rules is allowed in this block.
60+
5961
The relative precedence of egress rules within a single CNP object
6062
(all of which share the priority) will be determined by the order
6163
in which the rule is written.
@@ -491,7 +493,9 @@ spec:
491493
ingress:
492494
description: |-
493495
Ingress is the list of Ingress rules to be applied to the selected pods.
494-
A total of 100 rules will be allowed in each CNP instance.
496+
497+
A maximum of 25 rules is allowed in this block.
498+
495499
The relative precedence of ingress rules within a single CNP object
496500
(all of which share the priority) will be determined by the order
497501
in which the rule is written.

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ spec:
5555
egress:
5656
description: |-
5757
Egress is the list of Egress rules to be applied to the selected pods.
58-
A total of 100 rules will be allowed in each CNP instance.
58+
59+
A maximum of 25 rules is allowed in this block.
60+
5961
The relative precedence of egress rules within a single CNP object
6062
(all of which share the priority) will be determined by the order
6163
in which the rule is written.
@@ -385,7 +387,9 @@ spec:
385387
ingress:
386388
description: |-
387389
Ingress is the list of Ingress rules to be applied to the selected pods.
388-
A total of 100 rules will be allowed in each CNP instance.
390+
391+
A maximum of 25 rules is allowed in this block.
392+
389393
The relative precedence of ingress rules within a single CNP object
390394
(all of which share the priority) will be determined by the order
391395
in which the rule is written.

0 commit comments

Comments
 (0)