From 2e3324ee8a9ed1cf819b9ac6ed30413c5d10bda6 Mon Sep 17 00:00:00 2001 From: pviraj59 Date: Fri, 15 Dec 2023 11:31:02 -0500 Subject: [PATCH] Added timestamp boolean for TailBuildName to be used in kpcli --- pkg/logs/build_logs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/logs/build_logs.go b/pkg/logs/build_logs.go index 3645cb070..2fc1d4387 100644 --- a/pkg/logs/build_logs.go +++ b/pkg/logs/build_logs.go @@ -49,11 +49,11 @@ func (c *BuildLogsClient) GetImageLogs(ctx context.Context, writer io.Writer, im }, false, false) } -func (c *BuildLogsClient) TailBuildName(ctx context.Context, writer io.Writer, namespace string, buildName string) error { +func (c *BuildLogsClient) TailBuildName(ctx context.Context, writer io.Writer, namespace string, buildName string, timestamp bool) error { return c.tailPods(ctx, writer, namespace, metav1.ListOptions{ Watch: true, LabelSelector: fmt.Sprintf("%s=%s", buildapi.BuildLabel, buildName), - }, true, true, false) + }, true, true, timestamp) } func (c *BuildLogsClient) tailPods(ctx context.Context, writer io.Writer, namespace string, listOptions metav1.ListOptions, exitPodComplete bool, follow, timestamp bool) error {