Skip to content

Commit

Permalink
Merge pull request #110 from nirmata/NDEV-17894
Browse files Browse the repository at this point in the history
NDEV-17894: correct mutate resource for disallow-previliged containers
  • Loading branch information
anusha94 authored Feb 6, 2024
2 parents 2690477 + 0165e2a commit dc52ca3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ spec:
- Job
- DaemonSet
mutate:
foreach:
foreach:
- list: request.object.spec.template.spec.containers[]
order: Descending
preconditions:
all:
- key: "{{ element.securityContext && element.securityContext.privileged }}"
- key: "{{ element.securityContext && element.securityContext.privileged || 'false' }}"
operator: Equals
value: true
patchesJson6902: |-
Expand All @@ -36,7 +36,7 @@ spec:
order: Descending
preconditions:
all:
- key: "{{ element.securityContext && element.securityContext.privileged }}"
- key: "{{ element.securityContext && element.securityContext.privileged || 'false' }}"
operator: Equals
value: true
patchesJson6902: |-
Expand All @@ -47,7 +47,7 @@ spec:
order: Descending
preconditions:
all:
- key: "{{ element.securityContext && element.securityContext.privileged }}"
- key: "{{ element.securityContext && element.securityContext.privileged || 'false' }}"
operator: Equals
value: true
patchesJson6902: |-
Expand Down

0 comments on commit dc52ca3

Please sign in to comment.