Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions util/src/main/java/io/kubernetes/client/util/KubeConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ public KubeConfig(ArrayList<Object> contexts,
}

public boolean setContext(String context) {
if (context == null) {
return false;
}

currentCluster = null;
currentUser = null;
Map<String, Object> ctx = findObject(contexts, context);
Expand Down Expand Up @@ -197,6 +201,9 @@ public String getAccessToken() {
}

public boolean verifySSL() {
if (currentCluster == null) {
return false;
}
if (currentCluster.containsKey("insecure-skip-tls-verify")) {
return ! ((Boolean) currentCluster.get("insecure-skip-tls-verify")).booleanValue();
}
Expand Down