Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Respect KUBECACHEDIR environment variable #975

Merged
merged 1 commit into from
Dec 16, 2023
Merged

Conversation

towo
Copy link
Contributor

@towo towo commented Aug 28, 2023

This adds a check for the existence of a (non-empty) KUBECACHEDIR environment variable that will be used to construct the cache directory path if present.

Tested locally with variable set/unset and directory empty/non-empty, works fine.

Programmatic tests aren't there yet, I'd love a pointer on how you'd want to harness testing depending on an environment variable, since I only see usage of tests for e.g. $KUBECONFIG in acceptance_test/integration_test

This adds a check for the existence of a (non-empty) `KUBECACHEDIR`
environment variable that will be used to construct the cache directory
path if present.
@ardaguclu
Copy link

As the developer of KUBECACHEDIR feature in k8s, I think that would be a useful feature in this plugin.

@int128 int128 merged commit 9da00c5 into int128:master Dec 16, 2023
@int128
Copy link
Owner

int128 commented Dec 16, 2023

Thank you for the great contribution!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants