From 4194b821c86fceca48e3f6c24a84d84e4f3c5d18 Mon Sep 17 00:00:00 2001 From: Raul Sevilla Date: Wed, 19 Jan 2022 09:38:25 +0100 Subject: [PATCH] Namespaces length should be less than 63 characters to prevent errors while adding the suffix Signed-off-by: Raul Sevilla --- pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 255a7274d..b4bf1f596 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -121,7 +121,7 @@ func Parse(c string, jobsRequired bool) error { for _, job := range ConfigSpec.Jobs { if len(job.Namespace) > 62 { log.Warnf("Namespace %s length has > 63 characters, truncating it", job.Namespace) - job.Namespace = job.Namespace[:62] + job.Namespace = job.Namespace[:57] } } }