Skip to content

Commit

Permalink
adding comment on priority range
Browse files Browse the repository at this point in the history
  • Loading branch information
shireenf-ibm committed Sep 10, 2024
1 parent b8c2bbe commit be0741d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/netpol/eval/internal/k8s/adminnetpol.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ func (anp *AdminNetworkPolicy) GetEgressPolicyConns(dst Peer) (*PolicyConnection
}

const (
// according to this: https://network-policy-api.sigs.k8s.io/api-overview/#adminnetworkpolicy-priorities
// The Priority field in the ANP spec is defined as an integer value within the range 0 to 1000
minPriority = 0
maxPriority = 1000
)
Expand Down

0 comments on commit be0741d

Please sign in to comment.