You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any Policy or ClusterPolicy with a preconditions field will report rule_result=fail for rules that do not match the precondition. This makes it hard to monitor for rule failures when preconditions are used to exclude a rule from being applied.
Then create some Service objects that are notLoadBalancer types. Check your metrics and you will see that they are continually being marked as rule_result=fail in the metrics, while they are not marked that way in the PolicyReport.
Expected behavior
The data that populates the metrics should be the same as the data we see in the PolicyReport.
The text was updated successfully, but these errors were encountered:
Software version numbers
Describe the bug
Slack Thread: https://kubernetes.slack.com/archives/CLGR9BJU9/p1635458987180000
Any
Policy
orClusterPolicy
with apreconditions
field will reportrule_result=fail
for rules that do not match the precondition. This makes it hard to monitor for rule failures when preconditions are used to exclude a rule from being applied.To Reproduce
Create this rule:
Then create some Service objects that are not
LoadBalancer
types. Check your metrics and you will see that they are continually being marked asrule_result=fail
in the metrics, while they are not marked that way in thePolicyReport
.Expected behavior
The data that populates the metrics should be the same as the data we see in the
PolicyReport
.The text was updated successfully, but these errors were encountered: