fix: use variable to reference hydra-migrate job

This commit is contained in:
wpetit 2023-01-30 16:15:39 +01:00
parent bb79c56c30
commit abe220ff40
2 changed files with 11 additions and 2 deletions

View File

@ -21,4 +21,13 @@ configMapGenerator:
- URLS_LOGIN=http://hydra-login-app/login - URLS_LOGIN=http://hydra-login-app/login
- URLS_CONSENT=http://hydra-consent-app/consent - URLS_CONSENT=http://hydra-consent-app/consent
- URLS_LOGOUT=http://hydra-logout-app/logout - URLS_LOGOUT=http://hydra-logout-app/logout
- HYDRA_SERVE_ALL_ARGS= - HYDRA_SERVE_ALL_ARGS=
vars:
- name: HYDRA_MIGRATE_JOB_NAME
objref:
name: hydra-migrate
kind: Job
apiVersion: batch/v1
fieldref:
fieldpath: metadata.name

View File

@ -22,7 +22,7 @@ spec:
image: reg.cadoles.com/proxy_cache/groundnuty/k8s-wait-for:v1.3 image: reg.cadoles.com/proxy_cache/groundnuty/k8s-wait-for:v1.3
args: args:
- job - job
- hydra-migrate - $(HYDRA_MIGRATE_JOB_NAME)
containers: containers:
- name: hydra - name: hydra
image: reg.cadoles.com/proxy_cache/oryd/hydra:v2.0.3 image: reg.cadoles.com/proxy_cache/oryd/hydra:v2.0.3