ACM-34294 Missing UI Validation on Empty Policy Template Submission#6308
Conversation
Signed-off-by: Oksana Bazylieva <obazylie@redhat.com>
|
Warning Review limit reached
More reviews will be available in 29 minutes and 56 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fxiang1, oksanabaza The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
|
/cherry-pick release-2.17 |
|
@oksanabaza: new pull request created: #6321 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |



📝 Summary
When creating a new policy, the default data has spec: { disabled: false } but NO policy-templates field. This means:
If user never touches templates →spec.policy-templatesisundefined→ API error
If user adds then removes all templates →spec.policy-templatesis[]→ API accepts it
Ticket Summary (Title):
ACM-34294 Missing UI Validation on Empty Policy Template Submission
Ticket Link:
https://redhat.atlassian.net/browse/ACM-34294
Type of Change:
✅ Checklist
General
ACM-12340 Fix bug with...)If Feature
If Bugfix
🗒️ Notes for Reviewers
Before:
2026-06-07.2.03.48.PM.mov
After:
2026-06-07.2.01.40.PM.mov