21 lines
424 B
YAML
21 lines
424 B
YAML
{{ if .Values.migrate.tag }}
|
|
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
generateName: sync-wave-2-migrate-
|
|
annotations:
|
|
argocd.argoproj.io/hook: Sync
|
|
argocd.argoproj.io/sync-wave: "2"
|
|
spec:
|
|
backoffLimit: 3
|
|
template:
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: migrate
|
|
image: {{ .Values.migrate.repo }}:{{ .Values.migrate.tag }}
|
|
command:
|
|
- migrate
|
|
{{ end }}
|