We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd07810 + 2a599b2 commit 2366abfCopy full SHA for 2366abf
util/src/main/java/io/kubernetes/client/util/Config.java
@@ -99,8 +99,10 @@ public static ApiClient fromConfig(InputStream stream) {
99
}
100
101
public static ApiClient fromConfig(Reader input) {
102
+ return fromConfig(KubeConfig.loadKubeConfig(input));
103
+ }
104
- KubeConfig config = KubeConfig.loadKubeConfig(input);
105
+ public static ApiClient fromConfig(KubeConfig config) {
106
ApiClient client = new ApiClient();
107
client.setBasePath(config.getServer());
108
0 commit comments