-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
-
None
Description of problem:
When running the gitops-must-gather on OpenShift 4.13 clusters, the script fails with the error:
Error from server (Forbidden): pods "must-gather-ll5hh" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (containers "gather", "copy" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (containers "gather", "copy" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or containers "gather", "copy" must set securityContext.runAsNonRoot=true), seccompProfile (pod or containers "gather", "copy" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
Corresponds with issue #5 in gitops-must-gather
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
- Log into an OpenShift 4.13 cluster
- Try to execute the gitops-must-gather script with
oc adm must-gather --image=quay.io/redhat-developer/gitops-must-gather:latest
Actual results:
Fails with error mentioned above
Expected results:
Script should execute successfully, as it does with other OCP versions.
Reproducibility (Always/Intermittent/Only Once):
Always