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

Gatekeeper policies are not providing a status

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • ACM 2.9.0
    • GRC
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • GRC Sprint 2023-16
    • Important
    • No

      Description of problem:

      I'm having problems with gatekeeper policies – no status is being returned.  The constraints and constrainttemplates are not being created.

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

      I am using build 2.9.0-SNAPSHOT-2023-08-21-13-37-13

      How reproducible:

      I have not tried to recreate this.  I am not sure why/how I got my gatekeeper policies into a state where they do not provide any status in the policies. 

      Steps to Reproduce: 

      1. Deploy the gatekeeper operator
      2. Clone the repo https://github.com/gparvin/grc-demo
      3. In the cloned repo, edit the 2.7/generator/gatekeeper-container/policyGenerator.yaml file and add the setting to the defaults: informGatekeeperPolicies: false
      4. Deploy gatekeeper policy set: kustomize build --enable-alpha-plugins | oc apply -f -
      5. The policies do not get any status because the constrainttemplates are never created

      Actual results:

      My gatekeeper policies are not returning status. The constraints do not exist.  I can manually create the constraints and status will be returned.

      Expected results:

      The gatekeeper resources should be created for me

      Additional info:

      Attaching a log

              gparvin-redhat Gus Parvin
              gparvin-redhat Gus Parvin
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: