-
Bug
-
Resolution: Done
-
Major
-
ACM 2.12.0
-
1
-
False
-
-
False
-
-
-
GRC Sprint 2025-05
-
Moderate
-
Customer Facing
-
None
Description of problem:
The policy-generator-plugin raises the following error when setting policy's evaluationInterval to "watch":
the policy v1-validator-du-policy has an invalid policy.evaluationInterval.compliant value: time: invalid duration "watch"
The error occurs due to the check https://github.com/open-cluster-management-io/policy-generator-plugin/blob/main/internal/plugin.go#L1031 in the plugin code.
Version-Release number of selected component (if applicable):
2.12.0
How reproducible:
100%
Steps to Reproduce:
- In the PolicyGenerator, set either policyDefaults.evaluationInterval.compliant or policies[x].evaluationInterval.compliant to "watch"
- Generate the policy
- ...
Actual results:
The policy generation fails with the error message mentioned above.
Expected results:
The policy should be generated successfully