mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
updates with case insensitivity guarantee (#4954)
* updates with case insensitivity guarantee Signed-off-by: Chip Zoller <chipzoller@gmail.com> * fix syntax Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Chip Zoller <chipzoller@gmail.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
parent
3ebb6284cc
commit
b522274d74
2 changed files with 4 additions and 2 deletions
|
@ -39,3 +39,5 @@ annotations:
|
|||
description: Added ability to get additional policies from restricted
|
||||
- kind: fixed
|
||||
description: Applied fix in preconditions for background mode
|
||||
- kind: added
|
||||
description: Added case insensitivity guarantees to disallow-capabilities-strict
|
||||
|
|
|
@ -71,7 +71,7 @@ spec:
|
|||
all:
|
||||
- key: ALL
|
||||
operator: AnyNotIn
|
||||
value: "{{`{{ element.securityContext.capabilities.drop || '' }}`}}"
|
||||
value: "{{`{{`}} element.securityContext.capabilities.drop[].to_upper(@) || `[]` {{`}}`}}"
|
||||
- name: adding-capabilities-strict
|
||||
match:
|
||||
any:
|
||||
|
@ -111,7 +111,7 @@ spec:
|
|||
deny:
|
||||
conditions:
|
||||
all:
|
||||
- key: "{{`{{ element.securityContext.capabilities.add[] || '' }}`}}"
|
||||
- key: "{{`{{`}} element.securityContext.capabilities.add[].to_upper(@) || `[]` {{`}}`}}"
|
||||
operator: AnyNotIn
|
||||
value:
|
||||
- NET_BIND_SERVICE
|
||||
|
|
Loading…
Reference in a new issue