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

Need a way to look up file that contains the 'current-context' property. #6839

Open
adietish opened this issue Jan 29, 2025 · 1 comment
Open

Comments

@adietish
Copy link
Contributor

adietish commented Jan 29, 2025

Is your enhancement related to a problem? Please describe

If a consumer wants to change the current context in the configuration file(s), it needs to figure out what file (among the ones that configured the client) contains the current-context property.
Currently there are means to look up the file with the current context object (Config#getFile), look up the current cluster object (Config#getFileWithCluster) or look up the file with the user object (Config#getFileWithAuthInfo). One currently cannot look up the file that has the pointer to the current context, the current-context property.

Describe the solution you'd like

I'd add a public method fileWithCurrentContextMapping to io.fabric8.kubernetes.client.Client

Describe alternatives you've considered

No response

Additional context

No response

@adietish
Copy link
Contributor Author

adietish commented Jan 29, 2025

I can contribute a patch. I currently have a lookup in intellij-kubernetes. Afaiu there's no storing of the file in the additional properties like we currently have for context, cluster and user.

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

No branches or pull requests

1 participant