Skip to content

Commit 43c1762

Browse files
Fix the node log query
Signed-off-by: Neeraj Krishna Gopalakrishna <[email protected]>
1 parent e86686a commit 43c1762

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/kubernetes/accesscontrol_clientset.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ func (a *AccessControlClientset) NodesLogs(ctx context.Context, name, logPath st
4949
return nil, fmt.Errorf("failed to get node %s: %w", name, err)
5050
}
5151

52-
url := []string{"api", "v1", "nodes", name, "proxy", "logs", logPath}
52+
url := []string{"api", "v1", "nodes", name, "proxy", "logs"}
5353
return a.delegate.CoreV1().RESTClient().
5454
Get().
55-
AbsPath(url...), nil
55+
AbsPath(url...).
56+
Param("query", logPath), nil
5657
}
5758

5859
func (a *AccessControlClientset) Pods(namespace string) (corev1.PodInterface, error) {

0 commit comments

Comments
 (0)