From 1908bda5b511f0a52f3afdb29cf2aa34b2084ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Maih=C3=B6fner?= Date: Fri, 23 Sep 2022 13:36:19 +0200 Subject: [PATCH] fix: Truncate cronjob to avoid names that are longer then the allowed 52 characters --- cockroachdb/templates/_helpers.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockroachdb/templates/_helpers.tpl b/cockroachdb/templates/_helpers.tpl index 4f62a955..fef48331 100644 --- a/cockroachdb/templates/_helpers.tpl +++ b/cockroachdb/templates/_helpers.tpl @@ -83,11 +83,11 @@ Return CockroachDB store expression Define the default values for the certificate selfSigner inputs */}} {{- define "selfcerts.fullname" -}} - {{- printf "%s-%s" (include "cockroachdb.fullname" .) "self-signer" | trunc 56 | trimSuffix "-" -}} + {{- printf "%s-%s" (include "cockroachdb.fullname" .) "self-signer" | trunc 52 | trimSuffix "-" -}} {{- end -}} {{- define "rotatecerts.fullname" -}} - {{- printf "%s-%s" (include "cockroachdb.fullname" .) "rotate-self-signer" | trunc 56 | trimSuffix "-" -}} + {{- printf "%s-%s" (include "cockroachdb.fullname" .) "rotate-self-signer" | trunc 44 | trimSuffix "-" -}} {{- end -}} {{- define "selfcerts.minimumCertDuration" -}}