Skip to content

Commit

Permalink
🐛(argocd) fix job synchronisation issue
Browse files Browse the repository at this point in the history
Sometime argocd is locked because of immutable fiels on jobs. The
annotation tells argocd to do a replace to avoid this behaviour
  • Loading branch information
rouja committed Sep 24, 2024
1 parent a08ca58 commit b44af91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/helm/desk/templates/backend_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ kind: Job
metadata:
name: {{ $fullName }}-migrate
namespace: {{ .Release.Namespace | quote }}
{{- with .Values.backend.migrateJobAnnotations }}
annotations:
argocd.argoproj.io/sync-options: Replace=true,Force=true
{{- with .Values.backend.migrateJobAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
Expand Down
3 changes: 2 additions & 1 deletion src/helm/desk/templates/backend_job_createsuperuser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ kind: Job
metadata:
name: {{ $fullName }}-createsuperuser
namespace: {{ .Release.Namespace | quote }}
{{- with .Values.backend.migrateJobAnnotations }}
annotations:
argocd.argoproj.io/sync-options: Replace=true,Force=true
{{- with .Values.backend.migrateJobAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
Expand Down

0 comments on commit b44af91

Please sign in to comment.