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

[release-2.13] Policy not compliant when setting object namespace with templates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • ACM 2.13.4
    • ACM 2.13.0
    • GRC
    • None
    • Quality / Stability / Reliability
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • GRC Sprint 2025-13, GRC Sprint 2025-14, GRC Sprint 2025-15
    • Important
    • +
    • None

      Description of problem:

      When creating a object with a ConfigurationPolicy where the namespace is defined with a template ACM 2.13 reports error "violation - namespaced object example-ns-template of kind ConfigMap has no namespace specified from the policy namespaceSelector nor the object metadata"

       

      apiVersion: v1
      kind: ConfigMap
      metadata:
        name: example-ns-template
        namespace: '{{ (eq (fromClusterClaim "product.open-cluster-management.io") "AKS" | ternary "argocd" "gitops") }}'
      data:
        test: one 

       

      Steps to Reproduce:

      1. See attached example

       

              rh-ee-dhaiduce Dale Haiducek
              rhn-support-bjarvis Brian Jarvis
              ManiKrishna Sai Ravi ManiKrishna Sai Ravi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: