Argo-cd: Add controller statefulset name truncation at 52 chars. Fixes #1328 (#1329)

* Add controller statefulset name truncation at 52 chars

Signed-off-by: MichaelVL <mvl.gh@network42.dk>

* Delete old changelog

Signed-off-by: MichaelVL <mvl.gh@network42.dk>
This commit is contained in:
Michael Vittrup Larsen 2022-06-16 13:23:38 +02:00 committed by GitHub
parent 4ed76386e0
commit 0ad6070fcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -26,9 +26,11 @@ If release name contains chart name it will be used as a full name.
{{/*
Create controller name and version as used by the chart label.
Truncated at 52 chars because StatefulSet label 'controller-revision-hash' is limited
to 63 chars and it includes 10 chars of hash and a separating '-'.
*/}}
{{- define "argo-cd.controller.fullname" -}}
{{- printf "%s-%s" (include "argo-cd.fullname" .) .Values.controller.name | trunc 63 | trimSuffix "-" -}}
{{- printf "%s-%s" (include "argo-cd.fullname" .) .Values.controller.name | trunc 52 | trimSuffix "-" -}}
{{- end -}}
{{/*