Skip to content

Conversation

@jperville
Copy link
Contributor

@jperville jperville commented Oct 29, 2025

As an user of the kubeclient gem
I want to configure my Kubeconfig::Client automatically to use a tokenFile from kubeconfig
So that my token is automatically refreshed and my client does not expire.

This PR adds parsing for tokenFile in the kubeconfig authinfo and automatically sets auth_config[:bearer_token_file] in the client library. tokenFile will be prioritary over token entries if both are found.

This feature makes the existing support for bearer_token_file (which allows for refreshing tokens) in this library easier to use.

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.

1 participant