From 60fe4a0800e0b4411494c66e96dbc123ae55fac7 Mon Sep 17 00:00:00 2001 From: Luis Neto Date: Tue, 3 Dec 2024 06:24:14 -0800 Subject: [PATCH] TUN-8769: fix k8s log collector arguments ## Summary The equal signs were making the exec command to fail removing them fixes the issue. Closes TUN-8769 --- diagnostic/log_collector_kubernetes.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/diagnostic/log_collector_kubernetes.go b/diagnostic/log_collector_kubernetes.go index 881a988c..ce45030e 100644 --- a/diagnostic/log_collector_kubernetes.go +++ b/diagnostic/log_collector_kubernetes.go @@ -39,9 +39,9 @@ func (collector *KubernetesLogCollector) Collect(ctx context.Context) (*LogInfor "kubectl", "logs", collector.pod, - "--since-time=", + "--since-time", since, - "--tail=", + "--tail", tailMaxNumberOfLines, "-c", collector.containerID, @@ -52,9 +52,9 @@ func (collector *KubernetesLogCollector) Collect(ctx context.Context) (*LogInfor "kubectl", "logs", collector.pod, - "--since-time=", + "--since-time", since, - "--tail=", + "--tail", tailMaxNumberOfLines, ) }