From f5278904cc6041782cc32794f7368789590e3ceb Mon Sep 17 00:00:00 2001 From: shubhindia Date: Mon, 30 Oct 2023 19:59:26 +0530 Subject: [PATCH] mark regexp hack to be removed in future Signed-off-by: shubhindia --- pkg/transformer/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/transformer/utils.go b/pkg/transformer/utils.go index f78c3dee..6b71de16 100644 --- a/pkg/transformer/utils.go +++ b/pkg/transformer/utils.go @@ -275,7 +275,7 @@ func ConfigAnnotations(service kobject.ServiceConfig) map[string]string { // Print either prints to stdout or to file/s func Print(name, path string, trailing string, data []byte, toStdout, generateJSON bool, f *os.File, provider string) (string, error) { file := "" - // simple hack to remove status from the output + // TODO: we should refactor / change this hack in the future once we have a better solution re := regexp.MustCompile(`(?s)status:.*`) data = re.ReplaceAll(data, nil)