fix(argo-cd): invalid yaml with topologySpreadConstraints (#1423)
* fix(argo-cd): invalid yaml with topologySpreadConstraints Signed-off-by: Alexandre Gaudreault <alexandre.gaudreault@logmein.com> * add missing end * Update Chart.yaml * Apply changes from code review Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Signed-off-by: Alexandre Gaudreault <alexandre.gaudreault@logmein.com> Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>pull/1424/head^2 argo-cd-5.3.2
parent
4e9663c747
commit
b4d2be51bc
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
appVersion: v2.4.11
|
appVersion: v2.4.11
|
||||||
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: 5.3.1
|
version: 5.3.2
|
||||||
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]: Env variable ARGOCD_CONTROLLER_REPLICAS is now automatically set by replica count"
|
- "[Fixed]: Invalid yaml for controller topologySpreadConstraints"
|
||||||
|
|
|
@ -138,11 +138,11 @@ spec:
|
||||||
{{- with .Values.controller.topologySpreadConstraints }}
|
{{- with .Values.controller.topologySpreadConstraints }}
|
||||||
topologySpreadConstraints:
|
topologySpreadConstraints:
|
||||||
{{- range $constraint := . }}
|
{{- range $constraint := . }}
|
||||||
- {{ toYaml $constraint | nindent 8 | trim }}
|
- {{ toYaml $constraint | nindent 8 | trim }}
|
||||||
{{- if not $constraint.labelSelector }}
|
{{- if not $constraint.labelSelector }}
|
||||||
labelSelector:
|
labelSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "argo-cd.selectorLabels" (dict "context" $ "name" $.Values.controller.name) | nindent 12 }}
|
{{- include "argo-cd.selectorLabels" (dict "context" $ "name" $.Values.controller.name) | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in New Issue