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

Reusing global Configuration() object in k8s client models instances #211

Closed
wants to merge 2 commits into from

Conversation

cuza
Copy link
Member

@cuza cuza commented Jan 4, 2024

Reusing global Configuration() object in k8s client models instances to avoid calling setLevel which will do a potentially expensive cache clear

Copy link
Member

@nemacysts nemacysts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'd be nice to UPPER_CASE the config variable :)

@cuza cuza requested a review from nemacysts January 4, 2024 23:47
Copy link
Member

@nemacysts nemacysts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cuza think it's still worth trying to merge this? i'm a tad worried that folks will forget to add this config so we'd probably want to pair this with a pre-commit hook or something :/

@nemacysts
Copy link
Member

closing this for now since we went with patching the k8s clientlib instead

@nemacysts nemacysts closed this May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants