Skip to content

Commit c9e4bf4

Browse files
committed
fix: Fix env for quarkus to upper case
1 parent 8b10e5f commit c9e4bf4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

helm/polaris/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ spec:
7878
{{- include "polaris.secretToEnv" (list .Values.storage.secret "awsSecretAccessKey" "polaris.storage.aws.secret-key") | indent 12 -}}
7979
{{- include "polaris.secretToEnv" (list .Values.storage.secret "gcpToken" "polaris.storage.gcp.token") | indent 12 -}}
8080
{{- if and ( eq .Values.persistence.type "relational-jdbc" ) .Values.persistence.relationalJdbc.secret.name }}
81-
{{- range $key, $envVar := dict "username" "username" "password" "password" "jdbcUrl" "jdbc.url" }}
82-
- name: quarkus.datasource.{{ $envVar }}
81+
{{- range $key, $envVar := dict "username" "USERNAME" "password" "PASSWORD" "jdbcUrl" "JDBC_URL" }}
82+
- name: QUARKUS_DATASOURCE_{{ $envVar }}
8383
valueFrom:
8484
secretKeyRef:
8585
name: {{ $.Values.persistence.relationalJdbc.secret.name }}

helm/polaris/tests/deployment_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ tests:
10221022

10231023
- it: should set relational-jdbc persistence environment variables
10241024
set:
1025-
persistence: { type: "relational-jdbc", relationalJdbc: { secret: { name: "polaris-persistence" } } }
1025+
persistence: { type: "relational-jdbc", dbKind: postgres, relationalJdbc: { secret: { name: "polaris-persistence" } } }
10261026
asserts:
10271027
- contains:
10281028
path: spec.template.spec.containers[0].env
@@ -1047,7 +1047,7 @@ tests:
10471047
valueFrom:
10481048
secretKeyRef:
10491049
name: polaris-persistence
1050-
key: jdbc_url
1050+
key: jdbcUrl
10511051

10521052
- it: should configure volume for file logging
10531053
set:

0 commit comments

Comments
 (0)