mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +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
|
description: Added ability to get additional policies from restricted
|
||||||
- kind: fixed
|
- kind: fixed
|
||||||
description: Applied fix in preconditions for background mode
|
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:
|
all:
|
||||||
- key: ALL
|
- key: ALL
|
||||||
operator: AnyNotIn
|
operator: AnyNotIn
|
||||||
value: "{{`{{ element.securityContext.capabilities.drop || '' }}`}}"
|
value: "{{`{{`}} element.securityContext.capabilities.drop[].to_upper(@) || `[]` {{`}}`}}"
|
||||||
- name: adding-capabilities-strict
|
- name: adding-capabilities-strict
|
||||||
match:
|
match:
|
||||||
any:
|
any:
|
||||||
|
@ -111,7 +111,7 @@ spec:
|
||||||
deny:
|
deny:
|
||||||
conditions:
|
conditions:
|
||||||
all:
|
all:
|
||||||
- key: "{{`{{ element.securityContext.capabilities.add[] || '' }}`}}"
|
- key: "{{`{{`}} element.securityContext.capabilities.add[].to_upper(@) || `[]` {{`}}`}}"
|
||||||
operator: AnyNotIn
|
operator: AnyNotIn
|
||||||
value:
|
value:
|
||||||
- NET_BIND_SERVICE
|
- NET_BIND_SERVICE
|
||||||
|
|
Loading…
Add table
Reference in a new issue