fixed _cleanup_pods auth using kubectl config - #172
Closed
giordyb wants to merge 1 commit into
Closed
Conversation
Member
|
I think Jacob's out today, but should be back in a day. Hopefully he can take a look then 🙂 |
Member
|
Thanks for this! These CI issues should be fixed after #171. Holding until then. |
Member
|
Since #162 has been merged this now has conflicts. Also one thing we discussed as part of that PR was adding a change like this. Sadly due to switching to asyncio for the kubernetes API we can't guarantee that the loop is still running at finalize time. This means passing the now async API object to the finalize call isn't suitable. In the rewrite, we actually create a new sync version of the API object during cleanup. Thanks anyway for making this change! If you have thoughts or comments we would be keen to hear them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, as requested here is the pull request to fix issue #170.
Since _cleanup_pods is only called from the Cluster object I thought it would be cleaner to just avoid creating a new kubernetes.client.CoreV1Api() object and just re-use the one created on _init by passing it as a argument.
thanks,
Giordano