Skip to content

feat: parse kubeconfig for bearer_token_file#677

Open
jperville wants to merge 1 commit intoManageIQ:masterfrom
PerfectMemory:feat/kubeconfig-bearer-token-file
Open

feat: parse kubeconfig for bearer_token_file#677
jperville wants to merge 1 commit intoManageIQ:masterfrom
PerfectMemory:feat/kubeconfig-bearer-token-file

Conversation

@jperville
Copy link
Copy Markdown
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