From c185d8c0d6774e90f64f4c6a84270c20a9325944 Mon Sep 17 00:00:00 2001 From: gcalin Date: Fri, 4 Mar 2022 19:04:58 +0100 Subject: Add option for pod logs to display different colors per container. Signed-off-by: Krzysztof Baran Signed-off-by: gcalin --- pkg/domain/entities/pods.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/domain/entities/pods.go') diff --git a/pkg/domain/entities/pods.go b/pkg/domain/entities/pods.go index da93d3f8b..a483064ab 100644 --- a/pkg/domain/entities/pods.go +++ b/pkg/domain/entities/pods.go @@ -149,6 +149,8 @@ type PodLogsOptions struct { ContainerLogsOptions // If specified will only fetch the logs of specified container ContainerName string + // Show different colors in the logs. + Color bool } type ContainerCreateOptions struct { @@ -482,6 +484,7 @@ func PodLogsOptionsToContainerLogsOptions(options PodLogsOptions) ContainerLogsO Until: options.Until, Tail: options.Tail, Timestamps: options.Timestamps, + Colors: options.Colors, StdoutWriter: options.StdoutWriter, StderrWriter: options.StderrWriter, } -- cgit v1.2.3-54-g00ecf