From 7c412904bbff016bcf4400f097cedcac07169725 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Tue, 24 Jan 2023 11:13:00 +0100 Subject: [PATCH] add profile as env --- src/main/helm/templates/deployment.yaml | 2 ++ src/test/helm/deployment_env_test.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml index bd7df8c7..2e44098c 100644 --- a/src/main/helm/templates/deployment.yaml +++ b/src/main/helm/templates/deployment.yaml @@ -85,6 +85,8 @@ spec: value: {{ include "app.baseUrl" . }} - name: KOP_KEYCLOAK_SYNC_CRON value: {{ .Values.kop.keycloak.sync.cron }} + - name: QUARKUS_PROFILE + value: {{ include "app.kopEnvironment" . }} {{- with (.Values.env).customList }} {{ toYaml . | indent 8 }} {{- end }} diff --git a/src/test/helm/deployment_env_test.yaml b/src/test/helm/deployment_env_test.yaml index 082d6b64..1a11bc42 100644 --- a/src/test/helm/deployment_env_test.yaml +++ b/src/test/helm/deployment_env_test.yaml @@ -46,3 +46,13 @@ tests: content: name: my_test_environment_name value: "A test value" + - it: should set quarkus profile + template: deployment.yaml + release: + namespace: sh-helm-dev + asserts: + - contains: + path: spec.template.spec.containers[0].env + content: + name: QUARKUS_PROFILE + value: dev \ No newline at end of file -- GitLab