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

Provide a Config.fromKubeconfig(Path|File) method and deprecate the current ones #6525

Closed
manusa opened this issue Oct 30, 2024 · 0 comments · Fixed by #6527
Closed

Provide a Config.fromKubeconfig(Path|File) method and deprecate the current ones #6525

manusa opened this issue Oct 30, 2024 · 0 comments · Fixed by #6527
Assignees
Milestone

Comments

@manusa
Copy link
Member

manusa commented Oct 30, 2024

Description

Part of #6516

Config offers several static helper methods to instantiate it using different procedures.

At the moment, the fromKubeconfig methods are intricate and confusing, especially the one that accepts a path String parameter:

public static Config fromKubeconfig(String kubeconfigContents) {

public static Config fromKubeconfig(String context, String kubeconfigContents, String kubeconfigPath) {

We should deprecate the one with the kubeconfigPath parameter and provide a convenient fromKubeconfig(Path|File) method.

In the future, this method can be improved to support #6240 by making it variadic.

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 a pull request may close this issue.

1 participant