Skip to content

Commit

Permalink
Update Emergency Tier's Priority to 20
Browse files Browse the repository at this point in the history
This PR updates the priority of Emergency Tier created by Antrea,
and set it to 20 as opposed to the intially assigned value of 5.
  • Loading branch information
abhiraut committed Dec 16, 2020
1 parent 7aedc36 commit bdfb303
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/antrea-network-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Tier CRD object, that will be enforced after developer-created K8s NetworkPolici
The details for these tiers are shown below:

```text
Emergency -> Tier name "emergency" with priority "5"
Emergency -> Tier name "emergency" with priority "20"
SecurityOps -> Tier name "securityops" with priority "50"
NetworkOps -> Tier name "networkops" with priority "100"
Platform -> Tier name "platform" with priority "150"
Expand Down Expand Up @@ -149,7 +149,7 @@ All of the above commands produce output similar to what is shown below:

```text
NAME PRIORITY AGE
emergency 5 27h
emergency 20 27h
securityops 50 27h
networkops 100 27h
platform 150 27h
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/networkpolicy/tier.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var (
"platform": int32(150),
"networkops": int32(100),
"securityops": int32(50),
"emergency": int32(5),
"emergency": int32(20),
}
// staticTierSet maintains the names of the static tiers such that they can
// be converted to corresponding Tier CRD names.
Expand Down

0 comments on commit bdfb303

Please sign in to comment.