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:
Laurent Lavaud 2023-07-03 19:55:01 +02:00 committed by GitHub
parent 167c112bcb
commit b9f610e319
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -128,9 +128,9 @@ Common deployment strategy definition
*/}}
{{- define "argo-cd.strategy" -}}
{{- $preset := . -}}
{{- if (eq $preset.type "Recreate") }}
{{- if (eq (toString $preset.type) "Recreate") }}
type: Recreate
{{- else if (eq $preset.type "RollingUpdate") }}
{{- else if (eq (toString $preset.type) "RollingUpdate") }}
type: RollingUpdate
{{- with $preset.rollingUpdate }}
rollingUpdate: