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

Custom nonCompliant message does not include diff values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • ACM 2.14.0
    • ACM. 2.12
    • GRC
    • None
    • Product / Portfolio Work
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      spec:
        customMessage:
          noncompliant: '{{.DefaultMessage}} - diff: {{ .Policy.status.relatedObjects[0].properties.diff }}'
      Show
      spec: customMessage:     noncompliant: '{{.DefaultMessage}} - diff: {{ .Policy.status.relatedObjects[0].properties.diff }}'
    • GRC Sprint 2025-09, GRC Sprint 2025-10, GRC Sprint 2025-11
    • Moderate
    • Customer Facing
    • None

      In the case where the policy is set to enforce the nonCompliant message when configured to show the policy relatedObjects[0].properties.diff, does not have a value.

      violation - clusterclaims [install-config-name] found but not as specified - diff: "null" 

      But setting the policy to Inform the diff is included

      "--- install-config-name : existing\n+++ install-config-name : updated\n@@ -4,7 +4,7 @@\n creationTimestamp: \"2025-02-24T15:48:46Z\"\n name: install-config-name\n resourceVersion: \"9217096\"\n uid: db822578-f73f-4e47-85d4-98075e62679b\n spec:\n- value: badinform\n+ value: acm\n \n" 

       

              rh-ee-dhaiduce Dale Haiducek
              rhn-support-bjarvis Brian Jarvis
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: