-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMP-2543: Implement whitelist for configure-network-policies-namespaces
Added a new varible var_network_policies_namespaces_whitelist_regex, and updated the rule configure_network_policies_namespaces so user is able to excude namespaces by setting this variable to the regex of namespace they want to exclude for this rule
- Loading branch information
1 parent
5582fc2
commit 6089f75
Showing
3 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
applications/openshift/networking/configure_network_policies_namespaces/oval/shared.xml
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
18 changes: 18 additions & 0 deletions
18
applications/openshift/networking/var_network_policies_namespaces_whitelist_regex.var
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
documentation_complete: true | ||
|
||
title: 'Whitelist Namespaces for Network Policies' | ||
|
||
description: |- | ||
Namespaces regular expression explicitly allowed | ||
through network policy filters, e.g. setting value to | ||
"namespace1|namespace2" will whitelist namespace | ||
"namespace1" and "namespace2" for network policies checks. | ||
|
||
type: string | ||
|
||
operator: equals | ||
|
||
interactive: false | ||
|
||
options: | ||
default: "None" |