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

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v2.4.0 appVersion: v2.4.0
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes. description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd name: argo-cd
version: 4.9.2 version: 4.9.3
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
keywords: keywords:
@ -21,4 +21,4 @@ dependencies:
condition: redis-ha.enabled condition: redis-ha.enabled
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- "[Changed]: Use latest URLs" - "[Fixed]: Long release names cause invalid app controller statefulset resource"

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. 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" -}} {{- 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 -}} {{- end -}}
{{/* {{/*