From abe220ff4044702566dcc293db1ff2b27ac2262a Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 30 Jan 2023 16:15:39 +0100 Subject: [PATCH] fix: use variable to reference hydra-migrate job --- resources/hydra/kustomization.yaml | 11 ++++++++++- resources/hydra/resources/hydra-deployment.yaml | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/resources/hydra/kustomization.yaml b/resources/hydra/kustomization.yaml index 1dbcac1..df7897c 100644 --- a/resources/hydra/kustomization.yaml +++ b/resources/hydra/kustomization.yaml @@ -21,4 +21,13 @@ configMapGenerator: - URLS_LOGIN=http://hydra-login-app/login - URLS_CONSENT=http://hydra-consent-app/consent - URLS_LOGOUT=http://hydra-logout-app/logout - - HYDRA_SERVE_ALL_ARGS= \ No newline at end of file + - HYDRA_SERVE_ALL_ARGS= + +vars: +- name: HYDRA_MIGRATE_JOB_NAME + objref: + name: hydra-migrate + kind: Job + apiVersion: batch/v1 + fieldref: + fieldpath: metadata.name \ No newline at end of file diff --git a/resources/hydra/resources/hydra-deployment.yaml b/resources/hydra/resources/hydra-deployment.yaml index 305bb83..ca16f23 100644 --- a/resources/hydra/resources/hydra-deployment.yaml +++ b/resources/hydra/resources/hydra-deployment.yaml @@ -22,7 +22,7 @@ spec: image: reg.cadoles.com/proxy_cache/groundnuty/k8s-wait-for:v1.3 args: - job - - hydra-migrate + - $(HYDRA_MIGRATE_JOB_NAME) containers: - name: hydra image: reg.cadoles.com/proxy_cache/oryd/hydra:v2.0.3