fix(argo-cd): Update argo-cd.strategy
template (#2144)
- Convert `$preset.type` to string to prevent an "incompatible types for comparison" when no strategy are defined Signed-off-by: Laurent Lavaud <llavaud@lvdconsulting.pro>
This commit is contained in:
parent
167c112bcb
commit
b9f610e319
2 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@ appVersion: v2.7.6
|
||||||
kubeVersion: ">=1.23.0-0"
|
kubeVersion: ">=1.23.0-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: 5.36.13
|
version: 5.36.14
|
||||||
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
|
||||||
sources:
|
sources:
|
||||||
|
@ -26,5 +26,5 @@ annotations:
|
||||||
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: fixed
|
||||||
description: Support for setting server certificate usages
|
description: Update argo-cd.strategy template
|
||||||
|
|
|
@ -128,9 +128,9 @@ Common deployment strategy definition
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "argo-cd.strategy" -}}
|
{{- define "argo-cd.strategy" -}}
|
||||||
{{- $preset := . -}}
|
{{- $preset := . -}}
|
||||||
{{- if (eq $preset.type "Recreate") }}
|
{{- if (eq (toString $preset.type) "Recreate") }}
|
||||||
type: Recreate
|
type: Recreate
|
||||||
{{- else if (eq $preset.type "RollingUpdate") }}
|
{{- else if (eq (toString $preset.type) "RollingUpdate") }}
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
{{- with $preset.rollingUpdate }}
|
{{- with $preset.rollingUpdate }}
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
|
|
Loading…
Reference in a new issue