forked from kubevirt/hyperconverged-cluster-operator
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comply with OCP 4.11 and 4.12 Pod Security Standards (kubevirt#2036)
Set something like: ``` spec: securityContext: # Do not use SeccompProfile if your project must work on # old k8s versions < 1.19 and Openshift < 4.11 seccompProfile: type: RuntimeDefault runAsNonRoot: true containers: - name: my-container securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL ``` following OCP/OKD 4.12 best practices. This is a manual cherry-pick of kubevirt#2036 Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
- Loading branch information
1 parent
7c1f624
commit 1709cf7
Showing
5 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
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
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