Skip to content

bug: 4:13 clusters do not work #5

@reginapizza

Description

@reginapizza

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:

  1. log into an openshift 4.13 cluster
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions