Skip to content
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

Download pod logs #21

Merged
merged 4 commits into from
Apr 15, 2024
Merged

Download pod logs #21

merged 4 commits into from
Apr 15, 2024

Conversation

AlbertoSoutullo
Copy link
Collaborator

@AlbertoSoutullo AlbertoSoutullo commented Apr 3, 2024

kubernetes.config. is something that is not pickable by python, but we need this configuration to access to the API.
I could do several things here, but most of them were about taking out the configuration and hence the API access from the class.
This was a very specific case where it is one of the very few occasions we will want to do something asynchronously in the cluster. I decided to create a static method in the class, so we don't have to take out the client and its configuration outside the class. This allows us to do calls asynchronously, since each call will create a new client configuration instead of trying to pickle it.

@AlbertoSoutullo AlbertoSoutullo added the 10k:main General work label Apr 3, 2024
@AlbertoSoutullo AlbertoSoutullo self-assigned this Apr 3, 2024
@AlbertoSoutullo AlbertoSoutullo marked this pull request as ready for review April 9, 2024 08:45
@AlbertoSoutullo AlbertoSoutullo merged commit 8fe6320 into master Apr 15, 2024
@AlbertoSoutullo AlbertoSoutullo deleted the Alberto/download-pod-logs branch May 13, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10k:main General work
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants