Skip to content

Commit 8a14164

Browse files
committed
fix supportWatch error
1 parent 94b1689 commit 8a14164

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/io/github/kubesys/client/utils/KubeUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ public static String getGroup(String fullkind) {
228228
* @return 是否支持被watch,像其见Kubernetes的Watch机制
229229
*/
230230
public static boolean supportWatch(JsonNode value) {
231+
if (!value.has("verbs")) {
232+
return true;
233+
}
231234
return value.get("verbs").toPrettyString().contains("watch");
232235
}
233236
}

0 commit comments

Comments
 (0)