fix(argo-cd): Fix (full)nameOverride redis-ha sub-chart (#725)
Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
a795074dd1
commit
d0efbc458a
2 changed files with 5 additions and 4 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
appVersion: 2.0.5
|
appVersion: 2.0.5
|
||||||
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 3.12.0
|
version: 3.12.1
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argoproj.github.io/argo-cd/assets/logo.png
|
icon: https://argoproj.github.io/argo-cd/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: |
|
||||||
- "[Added]: Support for aggregation clusterroles"
|
- "[Fixed]: redis-ha.nameOverride / redis-ha.fullnameOverride breaks the ArgoCD helm chart"
|
||||||
|
|
|
@ -42,10 +42,11 @@ Create dex name and version as used by the chart label.
|
||||||
Create redis name and version as used by the chart label.
|
Create redis name and version as used by the chart label.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "argo-cd.redis.fullname" -}}
|
{{- define "argo-cd.redis.fullname" -}}
|
||||||
{{ $redisHa := (index .Values "redis-ha") }}
|
{{- $redisHa := (index .Values "redis-ha") -}}
|
||||||
|
{{- $redisHaContext := dict "Chart" (dict "Name" "redis-ha") "Release" .Release "Values" $redisHa -}}
|
||||||
{{- if $redisHa.enabled -}}
|
{{- if $redisHa.enabled -}}
|
||||||
{{- if $redisHa.haproxy.enabled -}}
|
{{- if $redisHa.haproxy.enabled -}}
|
||||||
{{- printf "%s-redis-ha-haproxy" .Release.Name | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-haproxy" (include "redis-ha.fullname" $redisHaContext) | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s-%s" (include "argo-cd.fullname" .) .Values.redis.name | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-%s" (include "argo-cd.fullname" .) .Values.redis.name | trunc 63 | trimSuffix "-" -}}
|
||||||
|
|
Loading…
Reference in a new issue