Skip to content

Commit

Permalink
Merge pull request #229 from danwinship/priority-conflict
Browse files Browse the repository at this point in the history
Update the text about duplicate priority values
  • Loading branch information
k8s-ci-robot authored May 31, 2024
2 parents 6bafaf0 + 8be8ff5 commit fcd330d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions apis/v1alpha1/adminnetworkpolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ type AdminNetworkPolicyStatus struct {

// AdminNetworkPolicySpec defines the desired state of AdminNetworkPolicy.
type AdminNetworkPolicySpec struct {
// Priority is a value from 0 to 1000. Rules with lower priority values have
// higher precedence, and are checked before rules with higher priority values.
// Priority is a value from 0 to 1000. Policies with lower priority values have
// higher precedence, and are checked before policies with higher priority values.
// All AdminNetworkPolicy rules have higher precedence than NetworkPolicy or
// BaselineAdminNetworkPolicy rules
// The behavior is undefined if two ANP objects have same priority.
// Every AdminNetworkPolicy should have a unique priority value; if two (or more)
// policies with the same priority could both match a connection, then the
// implementation can apply any of the matching policies to the connection, and
// there is no way for the user to reliably determine which one it will choose.
//
// Support: Core
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,14 @@ spec:
type: array
priority:
description: |-
Priority is a value from 0 to 1000. Rules with lower priority values have
higher precedence, and are checked before rules with higher priority values.
Priority is a value from 0 to 1000. Policies with lower priority values have
higher precedence, and are checked before policies with higher priority values.
All AdminNetworkPolicy rules have higher precedence than NetworkPolicy or
BaselineAdminNetworkPolicy rules
The behavior is undefined if two ANP objects have same priority.
Every AdminNetworkPolicy should have a unique priority value; if two (or more)
policies with the same priority could both match a connection, then the
implementation can apply any of the matching policies to the connection, and
there is no way for the user to reliably determine which one it will choose.
Support: Core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -701,11 +701,14 @@ spec:
type: array
priority:
description: |-
Priority is a value from 0 to 1000. Rules with lower priority values have
higher precedence, and are checked before rules with higher priority values.
Priority is a value from 0 to 1000. Policies with lower priority values have
higher precedence, and are checked before policies with higher priority values.
All AdminNetworkPolicy rules have higher precedence than NetworkPolicy or
BaselineAdminNetworkPolicy rules
The behavior is undefined if two ANP objects have same priority.
Every AdminNetworkPolicy should have a unique priority value; if two (or more)
policies with the same priority could both match a connection, then the
implementation can apply any of the matching policies to the connection, and
there is no way for the user to reliably determine which one it will choose.
Support: Core
Expand Down

0 comments on commit fcd330d

Please sign in to comment.