-
Notifications
You must be signed in to change notification settings - Fork 593
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
Api discovery #3973
base: main
Are you sure you want to change the base?
Api discovery #3973
Conversation
var haveG string = apiG.Name | ||
haveWantedAPIs[API{Group: haveG}] = struct{}{} | ||
|
||
for _, apiGV := range apiG.Versions { |
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.
Do we even need to loop through the Versions if we don't have the Group in wantAPIs
? 🤔
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.
The expensive part was calling Kubernetes to retrieve the groups and versions. IMV, there's little benefit to discarding that information here.
Checklist:
Type of Changes:
What is the current behavior (link to any open issues here)?
What is the new behavior (if this is a feature change)?
Other Information: