Skip to content

Commit 94b1689

Browse files
committed
fix version bug
1 parent c839ed4 commit 94b1689

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/main/java/io/github/kubesys/client/KubernetesConstants.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ private KubernetesConstants() {
139139
*/
140140
public static final String KUBE_VALUE_SPLIT = ".";
141141

142+
/**
143+
* 取值为.
144+
*/
145+
public static final String KUBE_VERSION_SPLIT = "/";
146+
142147
/**
143148
* 取值为creationTimestamp
144149
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static String getCrdApiversion(JsonNode crd) {
8484
.get(KubernetesConstants.KUBE_SPEC_VERSIONS_NAME)
8585
.asText();
8686

87-
return group + KubernetesConstants.KUBE_VALUE_SPLIT + version;
87+
return group + KubernetesConstants.KUBE_VERSION_SPLIT + version;
8888
}
8989

9090
/**

0 commit comments

Comments
 (0)