-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jaydip Gabani <[email protected]>
- Loading branch information
1 parent
1c04d37
commit 3a23903
Showing
5 changed files
with
29 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
variables: | ||
- name: sharingHostIPC | ||
expression: | | ||
has(variables.anyObject.spec.hostIPC) ? variables.anyObject.spec.hostIPC : false | ||
- name: sharingHostPID | ||
expression: | | ||
has(variables.anyObject.spec.hostPID) ? variables.anyObject.spec.hostPID : false | ||
- name: sharingNamespace | ||
expression: | | ||
has(variables.anyObject.spec.hostPID) || has(variables.anyObject.spec.hostIPC) ? variables.anyObject.spec.hostPID || variables.anyObject.spec.hostIPC : false | ||
variables.sharingHostIPC || variables.sharingHostPID | ||
validations: | ||
- expression: '(has(request.operation) && request.operation == "UPDATE") || !variables.sharingNamespace' | ||
messageExpression: '"Sharing the host namespace is not allowed: " + variables.anyObject.metadata.namespace' |
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