File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ type AdminNetworkPolicySpec struct {
51
51
// higher precedence, and are checked before rules with higher priority values.
52
52
// All AdminNetworkPolicy rules have higher precedence than NetworkPolicy or
53
53
// BaselineAdminNetworkPolicy rules
54
+ // The relative precedence of the rules within a single ANP object (all of
55
+ // which share the priority) will be determined by the order in which the rule
56
+ // is written. Thus, a rule that appears at the top of the ingress/egress rules
57
+ // would take the highest precedence. If ingress rules are defined before egress
58
+ // rules in the same ANP object then ingress would take precedence and vice versa.
59
+ // The behavior is undefined if two ANP objects have same priority.
54
60
// +kubebuilder:validation:Minimum=0
55
61
// +kubebuilder:validation:Maximum=1000
56
62
Priority int32 `json:"priority"`
Original file line number Diff line number Diff line change @@ -748,6 +748,13 @@ spec:
748
748
priority values have higher precedence, and are checked before rules
749
749
with higher priority values. All AdminNetworkPolicy rules have higher
750
750
precedence than NetworkPolicy or BaselineAdminNetworkPolicy rules
751
+ The relative precedence of the rules within a single ANP object
752
+ (all of which share the priority) will be determined by the order
753
+ in which the rule is written. Thus, a rule that appears at the top
754
+ of the ingress/egress rules would take the highest precedence. If
755
+ ingress rules are defined before egress rules in the same ANP object
756
+ then ingress would take precedence and vice versa. The behavior
757
+ is undefined if two ANP objects have same priority.
751
758
format : int32
752
759
maximum : 1000
753
760
minimum : 0
You can’t perform that action at this time.
0 commit comments