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

azure kubelogin doesn't respect KUBECACHEDIR #500

Closed
jjournet opened this issue Aug 2, 2024 · 0 comments
Closed

azure kubelogin doesn't respect KUBECACHEDIR #500

jjournet opened this issue Aug 2, 2024 · 0 comments

Comments

@jjournet
Copy link
Contributor

jjournet commented Aug 2, 2024

Hello,

kubectl supports the KUBECACHEDIR environment variable to change the default location of ~/.kube/cache

The kubelogin implementaion from int128 fixed its implementation and respects now the KUBECACHEDIR env var.

Would it be possible to respect the KUBECACHEDIR environment variable in azure kubelogin ?

If a use case helps justify the need: I am using environment module to load different configuration for az cli and kubectl, as we are using different az identities for multiple clusters.
With KUBECACHEDIR not being supported, I can only use one az identity at a time for kubectl, as ~/.kube/cache is shared, whereas az and kubectl config are separated.

Thank you
JP

jjournet pushed a commit to jjournet/kubelogin that referenced this issue Aug 2, 2024
weinong pushed a commit that referenced this issue Aug 7, 2024
* support of environment variable KUBECACHEDIR #500

* Shifting place to change token assignation to follow @weinong advice

* Revert "Shifting place to change token assignation to follow @weinong advice"

This reverts commit 5b333d0.

* fixing lint error (var name)

---------

Co-authored-by: JP Journet <jjournet@healthequity.com>
@weinong weinong closed this as completed Aug 31, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants