-
Notifications
You must be signed in to change notification settings - Fork 97
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2753 +/- ##
=======================================
Coverage 89.40% 89.40%
=======================================
Files 110 110
Lines 10913 10913
Branches 50 50
=======================================
Hits 9757 9757
Misses 1098 1098
Partials 58 58 ☔ View full report in Codecov by Sentry. |
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) |
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 each ObservabilityPolicy. This compatible change requires version update from
v1alpha1 --> v1alpha2
. Add deprecated tag tov1alpha1
version of ObservabilityPolicy API.Testing:
Tested manually using the example. Installed observabilityPolicy with on branch
main
and then installing the new generated CRDs of the updated ObservabilityPolicy API.ObservabilityPolicy API gets updated to newer version when installing the new CRDs
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.