forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CNP Tier integration (antrea-io#956)
Add support for Tiered ClusterNetworkPolicies by associating a CNP with Tier name. This PR adds the following: Add a new field tier to CNP and native NP specs Add "Emergency, SecurityOps, NetworkOps, Platform, Application" as choices for tier names Add Tier column to the CNP kubectl get cnp output Update internal NetworkPolicy types to include the TierPriority associated with above tier names A CNP without any association to any tier will be created in the default lowest priority tier i.e. "Application Tier". The same applies for all existing CNP created prior to the Tier introduction. The tiers have the following precedence: Emergency > SecurityOps > NetworkOps > Platform > Application i.e. all policies associated with Emergency Tiers will be evaluated before any policy associated with SecurityOps tier and so on. The K8s NetworkPolicies will be evaluated once all Tiers are evaluated i.e. after the Application Tier.
- Loading branch information
Showing
19 changed files
with
558 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.