-
Notifications
You must be signed in to change notification settings - Fork 672
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
Include group in apiVersion in plugin_collector #5457
Include group in apiVersion in plugin_collector #5457
Conversation
Signed-off-by: Trevor McGuire <[email protected]>
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5457 +/- ##
==========================================
- Coverage 61.07% 60.60% -0.48%
==========================================
Files 793 775 -18
Lines 51226 49904 -1322
==========================================
- Hits 31288 30242 -1046
+ Misses 17062 16854 -208
+ Partials 2876 2808 -68
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Cc @andrewwdye |
@trevormcguire thanks for the PR! |
Congrats on merging your first pull request! 🎉 |
Signed-off-by: Trevor McGuire <[email protected]>
Signed-off-by: Trevor McGuire <[email protected]> Signed-off-by: Vladyslav Libov <[email protected]>
Tracking issue
Closes #5429
Why are the changes needed?
Correctly sets apiVersion to include group; fixes the
failed to list objects for ...
warning incollect
What changes were proposed in this pull request?
ResourceLevelMonitor
includesschema.GroupVersionKind
(gvk). The changes here correctly set theapiVersion
incollect
by utilizinggvk.GroupVersion().String()
, which puts "group" and "version" into a single "group/version" stringhttps://github.com/kubernetes/apimachinery/blob/703232ea6da48aed7ac22260dabc6eac01aab896/pkg/runtime/schema/group_version.go#L178-L182
How was this patch tested?
Built flytepropeller image with this change, deployed, ensured resources were correctly listed and ensured the aforementioned warning didn't appear.
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link