Skip to content

Commit be5a516

Browse files
authored
Merge pull request #1625 from lin1005q/master
bugfix KubectlGetSingle.execute() error
2 parents 0679265 + 498d7c6 commit be5a516

File tree

1 file changed

+2
-0
lines changed
  • extended/src/main/java/io/kubernetes/client/extended/kubectl

1 file changed

+2
-0
lines changed

extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlGet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ private boolean isNamespaced() {
9797

9898
@Override
9999
public ApiType execute() throws KubectlException {
100+
refreshDiscovery();
101+
100102
GenericKubernetesApi<ApiType, ? extends KubernetesListObject> api =
101103
getGenericApi(KubectlGetSingle.this.apiTypeClass);
102104
try {

0 commit comments

Comments
 (0)