Skip to content

Commit 1c26dfb

Browse files
authored
Update KubectlLog.java
Namespace and pod name parameter position swap
1 parent 3419b73 commit 1c26dfb

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public InputStream execute() throws KubectlException {
3737
PodLogs logs = new PodLogs(apiClient);
3838
String ns = (this.namespace == null ? "default" : this.namespace);
3939
try {
40-
return logs.streamNamespacedPodLog(this.name, ns, this.container);
40+
return logs.streamNamespacedPodLog(ns, this.name, this.container);
4141
} catch (ApiException | IOException ex) {
4242
throw new KubectlException(ex);
4343
}

0 commit comments

Comments
 (0)