Skip to content

Commit 234cc23

Browse files
committed
🔧(helm) add annotations on job to force to replace them
A job can not be updated, to resolve this, we can add the argocd annotation that will replace and force to recreate the jobs.
1 parent abc0b77 commit 234cc23

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎src/helm/find/templates/backend_job.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
namespace: {{ .Release.Namespace | quote }}
99
{{- with .Values.backend.migrateJobAnnotations }}
1010
annotations:
11+
argocd.argoproj.io/sync-options: Replace=true,Force=true
1112
{{- toYaml . | nindent 4 }}
1213
{{- end }}
1314
labels:

‎src/helm/find/templates/backend_job_createsuperuser.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
namespace: {{ .Release.Namespace | quote }}
1010
{{- with .Values.backend.migrateJobAnnotations }}
1111
annotations:
12+
argocd.argoproj.io/sync-options: Replace=true,Force=true
1213
{{- toYaml . | nindent 4 }}
1314
{{- end }}
1415
labels:

0 commit comments

Comments
 (0)