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 757ab61 + 455a389 commit 60a8cd1Copy full SHA for 60a8cd1
util/src/main/java/io/kubernetes/client/util/KubeConfig.java
@@ -96,6 +96,10 @@ public KubeConfig(ArrayList<Object> contexts,
96
}
97
98
public boolean setContext(String context) {
99
+ if (context == null) {
100
+ return false;
101
+ }
102
+
103
currentCluster = null;
104
currentUser = null;
105
Map<String, Object> ctx = findObject(contexts, context);
@@ -197,6 +201,9 @@ public String getAccessToken() {
197
201
198
202
199
203
public boolean verifySSL() {
204
+ if (currentCluster == null) {
205
206
200
207
if (currentCluster.containsKey("insecure-skip-tls-verify")) {
208
return ! ((Boolean) currentCluster.get("insecure-skip-tls-verify")).booleanValue();
209
0 commit comments