Skip to content

Commit

Permalink
container - security context - set the RuntimeDefault for Seccomp pro…
Browse files Browse the repository at this point in the history
…file

KubeAPIWarningLogger	would violate PodSecurity "restricted:latest": seccompProfile (pod or container "mariadb-client" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")

Change-Id: I52291c790dfdd08a928b7425fa525ce28482ee9b
  • Loading branch information
morucci committed Oct 27, 2023
1 parent f5da65a commit 03f84c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/libs/base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ func MkSecurityContext(privileged bool) *apiv1.SecurityContext {
"ALL",
},
},
SeccompProfile: &apiv1.SeccompProfile{
Type: apiv1.SeccompProfileTypeRuntimeDefault,
},
}
}

Expand Down

0 comments on commit 03f84c7

Please sign in to comment.