-
Bug
-
Resolution: Done
-
Major
-
Global Hub 0.7.0
-
None
Description of problem:
When the policy is non-compliant the user should see the reason and message as to why the policy is non-compliant. Currently, the message that is being shown is:
Policy default.policy-1 status was updated to NonCompliant in cluster namespace <namespace>
The user cannot gauge the reason as to why the policy is non-compliant, unless they look at the Governance page within the ACM console and see the results for the policy as:
violation - namespaces not found: [foo] missing
This data should be captured in the event.local_policies table.
Version-Release number of selected component (if applicable):
ACM 2.8.1
How reproducible:
Frequent
Steps to Reproduce:
- Deploy Global Hub onto a cluster.
- Create a policy on the imported hub cluster (hub cluster should have a managed cluster).
- Wait for policy events to be created.
- Check event.local_policies table (view the message within the row data)
Actual results:
When policy is non-compliant, the user should be able to see why the policy is non-compliant.
The correct message is shown from the Governance page in the ACM console.
Expected results:
Policy events should have message explaining why the policy is non-compliant.