@@ -56,16 +56,20 @@ 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. Policies with lower priority values have
60
- // higher precedence, and are checked before policies with higher priority values.
61
- // All AdminNetworkPolicy rules have higher precedence than NetworkPolicy or
59
+ // Priority is a value from 0 to 1000. Policies with lower numeric
60
+ // priority values have higher precedence, and are checked before
61
+ // policies with higher priority values. All AdminNetworkPolicy rules
62
+ // have higher precedence than NetworkPolicy or
62
63
// BaselineAdminNetworkPolicy rules.
63
- // If two (or more) policies with the same priority could both match a connection,
64
- // then the implementation can apply any of the matching policies to the
65
- // connection, and there is no way for the user to reliably determine which one it
66
- // will choose. Administrators must be careful about assigning the priorities for
67
- // policies with rules that will match many connections, and ensure that policies
68
- // have unique priority values in cases where ambiguity would be unacceptable.
64
+ //
65
+ // If two (or more) policies with equal priority match the same
66
+ // traffic, then any one of the policies will be applied to the
67
+ // traffic. There is no way for the user to reliably determine the
68
+ // policy that will be applied.
69
+ //
70
+ // Administrators should use different priorities numbers if
71
+ // non-deterministic matching between overlapping policies is a
72
+ // problem.
69
73
//
70
74
// +kubebuilder:validation:Minimum=0
71
75
// +kubebuilder:validation:Maximum=1000
0 commit comments