-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ObservabilityPolicy API to have minimum one target ref #2753
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2753 +/- ##
=======================================
Coverage 89.86% 89.86%
=======================================
Files 107 107
Lines 10997 10997
Branches 50 50
=======================================
Hits 9883 9883
Misses 1054 1054
Partials 60 60 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Should we mention in the Currently, the user can use both versions of ObservabilityPolicy but the stored version is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc update LGTM!
If you install an old version of the policy, can you still view it properly when running Also, please update all ObservabilityPolicy examples to use the new version. We should mention this in the release notes. After three releases we'll remove the v1alpha1 version, so let's create an issue targeted for the 2.3 milestone for this. |
Created a new issue to remove version |
Yes, when I create a policy with CRDs on main, the policy is set to We can still create a policy with version |
Let's update the release note to include what the actual change is (relating to the targetRef minimum) |
8834253
to
81d550f
Compare
8e66d66
to
193be55
Compare
193be55
to
1ba62a1
Compare
Proposed changes
Write a clear and concise description that helps reviewers understand the purpose and impact of your changes. Use the
following format:
Problem: User wants ObservabilityPolicy CRD should require a minimum of 1 TargetRef.
Solution: Add validation to have minimum one target ref for the ObservabilityPolicy CRDs.
Testing:
Tested manually using the example. Installed observabilityPolicy with on branch
main
, a target ref and ensuring everything works as expected.Tested with specifying no target refs
Please focus on (optional): If you any specific areas where you would like reviewers to focus their attention or provide
specific feedback, add them here.
Closes #2524
Checklist
Before creating a PR, run through this checklist and mark each as complete.
Release notes
If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.