From 54cbc7888aae27fdc43dffffbc93974ab2930666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ra=CC=88th?= Date: Thu, 14 Dec 2023 13:24:34 +0100 Subject: [PATCH] Moved Liquibase image into values.yaml --- DB-Changelog-Dockerfile | 5 +---- .../tngkds/charts/tngkds-backend/templates/deployment.yaml | 2 +- k8s/helm/tngkds/charts/tngkds-backend/values.yaml | 7 ++++++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/DB-Changelog-Dockerfile b/DB-Changelog-Dockerfile index 0cf783a..5b7b375 100644 --- a/DB-Changelog-Dockerfile +++ b/DB-Changelog-Dockerfile @@ -1,6 +1,3 @@ FROM liquibase/liquibase -COPY /src/main/resources/db/changelog /liquibase/db/changelog -COPY /src/main/resources/db/changelog.yaml /liquibase/db - - +COPY /src/main/resources/db /liquibase/db diff --git a/k8s/helm/tngkds/charts/tngkds-backend/templates/deployment.yaml b/k8s/helm/tngkds/charts/tngkds-backend/templates/deployment.yaml index e6a9b20..7dd391f 100644 --- a/k8s/helm/tngkds/charts/tngkds-backend/templates/deployment.yaml +++ b/k8s/helm/tngkds/charts/tngkds-backend/templates/deployment.yaml @@ -22,7 +22,7 @@ spec: spec: initContainers: - name: liquibase - image: liquibase:0.1.12 + image: "{{ .Values.liquibaseImage.repository }}:{{ .Values.liquibaseImage.tag }}" command: ["/bin/sh", "-c"] args: - liquibase update --changeLogFile=db/changelog.yaml; diff --git a/k8s/helm/tngkds/charts/tngkds-backend/values.yaml b/k8s/helm/tngkds/charts/tngkds-backend/values.yaml index 5490a6b..a8646a9 100644 --- a/k8s/helm/tngkds/charts/tngkds-backend/values.yaml +++ b/k8s/helm/tngkds/charts/tngkds-backend/values.yaml @@ -18,6 +18,11 @@ imagePullSecrets: tng-distribution-pull-secret nameOverride: "" fullnameOverride: "" +# Liquibase +liquibaseImage: + repository: ghcr.io/worldhealthorganization/tng-key-distribution/tngkds-liquibase + tag: "0.0.1" + serviceAccount: # Specifies whether a service account should be created create: true @@ -111,7 +116,7 @@ spring: server: port: 8080 - +# Smart TN Gateway gateway: connector: enabled: true