From 51535d76bf432b6a8c202c011d6d9780f269141c Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 1 Feb 2023 11:30:41 +0100 Subject: [PATCH] feat(hydra-dispatcher): mount default apps config as volume --- resources/hydra-dispatcher/files/hydra/default.yaml | 2 ++ resources/hydra-dispatcher/kustomization.yaml | 5 ++++- .../resources/hydra-dispatcher-deployment.yaml | 10 +++++++++- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 resources/hydra-dispatcher/files/hydra/default.yaml diff --git a/resources/hydra-dispatcher/files/hydra/default.yaml b/resources/hydra-dispatcher/files/hydra/default.yaml new file mode 100644 index 0000000..f23203e --- /dev/null +++ b/resources/hydra-dispatcher/files/hydra/default.yaml @@ -0,0 +1,2 @@ +hydra: + apps: [] \ No newline at end of file diff --git a/resources/hydra-dispatcher/kustomization.yaml b/resources/hydra-dispatcher/kustomization.yaml index dcdb760..7425830 100644 --- a/resources/hydra-dispatcher/kustomization.yaml +++ b/resources/hydra-dispatcher/kustomization.yaml @@ -18,4 +18,7 @@ configMapGenerator: - BASE_URL=http://hydra-dispatcher - COOKIE_PATH=/ - DEFAULT_LOCALE=fr - - APP_LOCALES=fr,en \ No newline at end of file + - APP_LOCALES=fr,en + - name: hydra-dispatcher-apps + files: + - ./files/hydra/default.yaml \ No newline at end of file diff --git a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml index 6336510..9a4761e 100644 --- a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml +++ b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml @@ -17,12 +17,20 @@ spec: io.kompose.service: hydra-dispatcher spec: containers: - - name: hydra + - name: hydra-dispatcher image: reg.cadoles.com/cadoles/hydra-dispatcher-v1:v0.0.0-159-gd91e77b envFrom: - configMapRef: name: hydra-dispatcher-env + volumeMounts: + - mountPath: /var/www/config/hydra + name: hydra-dispatcher-apps ports: - containerPort: 80 resources: {} restartPolicy: Always + volumes: + - name: hydra-dispatcher-apps + configMap: + name: hydra-dispatcher-apps +