-
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.
fix: use newer seccompProfile spec in mutation (#599)
Older is ignored Signed-off-by: Mathieu Parent <[email protected]> Co-authored-by: Rita Zhang <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
19 changes: 11 additions & 8 deletions
19
mutation/pod-security-policy/seccomp/samples/mutation.yaml
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,14 +1,17 @@ | ||
apiVersion: mutations.gatekeeper.sh/v1 | ||
kind: AssignMetadata | ||
kind: Assign | ||
metadata: | ||
name: k8spspseccomp | ||
spec: | ||
match: | ||
scope: Namespaced | ||
kinds: | ||
- apiGroups: [""] | ||
kinds: ["Pod"] | ||
location: metadata.annotations."seccomp.security.alpha.kubernetes.io/pod" | ||
applyTo: | ||
- groups: [""] | ||
kinds: ["Pod"] | ||
versions: ["v1"] | ||
location: spec.securityContext.seccompProfile | ||
parameters: | ||
pathTests: | ||
- subPath: spec.securityContext.seccompProfile | ||
condition: MustNotExist | ||
assign: | ||
value: runtime/default | ||
value: | ||
type: RuntimeDefault |
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