-
Notifications
You must be signed in to change notification settings - Fork 778
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
fix: index readiness trackers by GK (not GVK) #2635
Conversation
Signed-off-by: davis-haba <[email protected]>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2635 +/- ##
==========================================
+ Coverage 53.19% 53.29% +0.10%
==========================================
Files 120 120
Lines 10594 10594
==========================================
+ Hits 5635 5646 +11
+ Misses 4522 4513 -9
+ Partials 437 435 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 3 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
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.
LGTM, thank you for fixing this!
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.
LGTM
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.
LGTM
Thanks for the PR!
Co-authored-by: Rita Zhang <[email protected]>
Co-authored-by: Rita Zhang <[email protected]> Signed-off-by: Xander Grzywinski <[email protected]>
Signed-off-by: davis-haba [email protected]
What this PR does / why we need it:
Readiness tracking for the
AssignImage
mutator was not working properly because the generic Mutation controller was hard coded to use versionv1
to look up its tracker, howeverAssignImage
is still inv1alpha1
.Indexing trackers by version is unnecessary. The same tracker can be used to track resources of the same GK but different versions, with no impact to the current behavior.
Fixes #2634
Why not change
objKey
struct to storeGK
instead ofGVK
? This presents some complications.objKey
is not strictly being used as a key, but also as a data store to denote a list of GVK's to watch. These use cases would have to be decoupled, which is a much more significant refactor than the change proposed here.