apiVersion: batch/v1
kind: Job
metadata:
name: hydra-migrate
spec:
template:
restartPolicy: OnFailure
containers:
- env: []
image: reg.cadoles.com/proxy_cache/oryd/hydra:v2.0.3
imagePullPolicy: IfNotPresent
args: ["migrate", "sql", "--yes", "$(DSN)"]