-
Notifications
You must be signed in to change notification settings - Fork 241
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
Upgrading k8s lib #3965
Upgrading k8s lib #3965
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,7 +166,6 @@ def setup_all_custom_resources( | |
# we need to try both possibilities | ||
for apiextension in [ | ||
kube_client.apiextensions, | ||
kube_client.apiextensions_v1_beta1, | ||
]: | ||
|
||
try: | ||
|
@@ -175,7 +174,7 @@ def setup_all_custom_resources( | |
).items | ||
except ApiException: | ||
log.debug( | ||
"Listing CRDs with apiextensions/v1 not supported on this cluster, falling back to v1beta1" | ||
"Listing CRDs with apiextensions/v1 not supported on this cluster" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. imo: i think we'd want to revert the changes to this file where we added the for loop rather than make this a for loop over a single version There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (it would make the code more straightforward and while we may need to handle new apiextension versions in the future, imo it'd be better to only temporarily have this sort of multi-version code) |
||
) | ||
crds_list = [] | ||
|
||
|
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.
we don't need a union anymore since we're using a single type now :)