Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-7737

Policy shows no status if policy-template name is invalid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • ACM 2.9.0
    • ACM 2.9.0
    • GRC
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • GRC Sprint 2023-17
    • Moderate
    • No

      Description of problem:

      let's assume you want to apply a Policy based on the following input

      apiVersion: constraints.gatekeeper.sh/v1beta1
      kind: K8sPSPAutomountServiceAccountTokenPod
      metadata:
        name: psp-automount-serviceaccount-token-pod
      spec:
        match:
          kinds:
            - apiGroups: [""]
              kinds: ["Pod"]
          excludedNamespaces: ["kube-system"]
      

      I works fine but let's assume you make a typo which is basically an invalid kubernetes object : psp_automount-serviceaccount-token-pod

      the Policy will show no status in the UI, some error would be expected

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:

      1. ...

      Actual results:

      Expected results:

      Additional info:

              rh-ee-dhaiduce Dale Haiducek
              rhn-support-cstark Christian Stark
              Dale Haiducek
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: