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

[RFE] Add setting name on ConfigurationPolicy in PolicyGenerator

XMLWordPrintable

    • False
    • None
    • False
    • Not Selected
    • 100% To Do, 0% In Progress, 0% Done

      When creating a policy with multiple manifests and `consolidateManfifest: false` the generated ConfigurationPolicies are names after the Policy with an index appended.

      This causes issues when attempting to use extraDependencies such as below.  Adding an additional manifest will change the index causing the existing dependencies to be incorrect.

      Allowing setting the name would also make it easier to identify in the UI when reviewing a policy.

        - name: acs-operator
          remediationAction: enforce
          policySets: 
            - acs-operator-hub
            - acs-operator-managed
          manifests: 
            - path: ns-rhacs-operator.yml
            - path: ns-stackrox.yml
            - path: operatorgroup.yml
              extraDependencies: 
                - name: acs-operator
                  kind: ConfigurationPolicy
                  compliance: "Compliant"
            - path: subscription.yml
              extraDependencies: 
                - name: acs-operator
                  kind: ConfigurationPolicy
                  compliance: "Compliant"
            - path: health/operator/operator-status.yml
              remediationAction: inform
              extraDependencies: 
                - name: acs-operator3
                  kind: ConfigurationPolicy
                  compliance: "Compliant"
                - name: acs-operator4
                  kind: ConfigurationPolicy
                  compliance: "Compliant"
      

       

            mprahl Matthew Prahl
            rhn-support-bjarvis Brian Jarvis
            Matthew Prahl Matthew Prahl
            Derek Ho Derek Ho
            Gus Parvin Gus Parvin
            Sho Weimer Sho Weimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: