Fix kubelet_server_journal --until parms.

Signed-off-by: yanggang <gang.yang@daocloud.io>
This commit is contained in:
yanggang 2024-01-11 01:09:28 +00:00
parent 741fd84d15
commit 9c39f2b776
No known key found for this signature in database
GPG Key ID: 7F6E0CAD1556A240

View File

@ -37,7 +37,7 @@ func getLoggingCmd(n *nodeLogQuery, services []string) (string, []string, error)
args = append(args, fmt.Sprintf("--since=%s", n.SinceTime.Format(dateLayout)))
}
if n.UntilTime != nil {
args = append(args, fmt.Sprintf("--until=%s", n.SinceTime.Format(dateLayout)))
args = append(args, fmt.Sprintf("--until=%s", n.UntilTime.Format(dateLayout)))
}
if n.TailLines != nil {
args = append(args, "--pager-end", fmt.Sprintf("--lines=%d", *n.TailLines))