File tree 3 files changed +18
-9
lines changed
3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,14 @@ type AdminNetworkPolicyStatus struct {
56
56
57
57
// AdminNetworkPolicySpec defines the desired state of AdminNetworkPolicy.
58
58
type AdminNetworkPolicySpec struct {
59
- // Priority is a value from 0 to 1000. Rules with lower priority values have
60
- // higher precedence, and are checked before rules with higher priority values.
59
+ // Priority is a value from 0 to 1000. Policies with lower priority values have
60
+ // higher precedence, and are checked before policies with higher priority values.
61
61
// All AdminNetworkPolicy rules have higher precedence than NetworkPolicy or
62
62
// BaselineAdminNetworkPolicy rules
63
- // The behavior is undefined if two ANP objects have same priority.
63
+ // Every AdminNetworkPolicy should have a unique priority value; if two (or more)
64
+ // policies with the same priority could both match a connection, then the
65
+ // implementation can apply any of the matching policies to the connection, and
66
+ // there is no way for the user to reliably determine which one it will choose.
64
67
//
65
68
// Support: Core
66
69
//
Original file line number Diff line number Diff line change @@ -817,11 +817,14 @@ spec:
817
817
type : array
818
818
priority :
819
819
description : |-
820
- Priority is a value from 0 to 1000. Rules with lower priority values have
821
- higher precedence, and are checked before rules with higher priority values.
820
+ Priority is a value from 0 to 1000. Policies with lower priority values have
821
+ higher precedence, and are checked before policies with higher priority values.
822
822
All AdminNetworkPolicy rules have higher precedence than NetworkPolicy or
823
823
BaselineAdminNetworkPolicy rules
824
- The behavior is undefined if two ANP objects have same priority.
824
+ Every AdminNetworkPolicy should have a unique priority value; if two (or more)
825
+ policies with the same priority could both match a connection, then the
826
+ implementation can apply any of the matching policies to the connection, and
827
+ there is no way for the user to reliably determine which one it will choose.
825
828
826
829
827
830
Support: Core
Original file line number Diff line number Diff line change @@ -701,11 +701,14 @@ spec:
701
701
type : array
702
702
priority :
703
703
description : |-
704
- Priority is a value from 0 to 1000. Rules with lower priority values have
705
- higher precedence, and are checked before rules with higher priority values.
704
+ Priority is a value from 0 to 1000. Policies with lower priority values have
705
+ higher precedence, and are checked before policies with higher priority values.
706
706
All AdminNetworkPolicy rules have higher precedence than NetworkPolicy or
707
707
BaselineAdminNetworkPolicy rules
708
- The behavior is undefined if two ANP objects have same priority.
708
+ Every AdminNetworkPolicy should have a unique priority value; if two (or more)
709
+ policies with the same priority could both match a connection, then the
710
+ implementation can apply any of the matching policies to the connection, and
711
+ there is no way for the user to reliably determine which one it will choose.
709
712
710
713
711
714
Support: Core
You can’t perform that action at this time.
0 commit comments