-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Describe the bug
When running the gitops-must-gather against an OpenShift 4.13 cluster, the script fails to execute.
The error states: 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")
To Reproduce
Steps to reproduce the behavior:
- 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
Expected behavior
Would expect the script to execute successfully and gather gitops operator information from the cluster
Corresponds to GITOPS-2575