File tree Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,14 @@ A Helm chart for Trino Gateway
37
37
- secretRef:
38
38
name: password-secret
39
39
` ` `
40
+ * `env` - list, default: `[]`
41
+
42
+ Additional environment variables to mount into the init container as environment variables.
43
+ Example :
44
+ ` ` ` yaml
45
+ - name: NAME
46
+ value: "value"
47
+ ` ` `
40
48
* `config.serverConfig."node.environment"` - string, default: `"test"`
41
49
* `config.serverConfig."http-server.http.port"` - int, default: `8080`
42
50
* `config.dataStore.jdbcUrl` - string, default: `"jdbc:postgresql://localhost:5432/gateway"`
Original file line number Diff line number Diff line change 38
38
imagePullPolicy : {{ .Values.image.pullPolicy }}
39
39
command :
40
40
{{- toYaml .Values.command | nindent 12}}
41
+ env :
42
+ {{- toYaml .Values.env | nindent 12}}
41
43
envFrom :
42
44
{{- toYaml .Values.envFrom | nindent 12}}
43
45
ports :
Original file line number Diff line number Diff line change @@ -30,6 +30,15 @@ imagePullSecrets: []
30
30
# ```
31
31
envFrom : []
32
32
33
+ # env -- Additional environment variables to mount into the init container as environment variables.
34
+ # @raw
35
+ # Example:
36
+ # ```yaml
37
+ # - name: NAME
38
+ # value: "value"
39
+ # ```
40
+ env : []
41
+
33
42
config :
34
43
serverConfig :
35
44
node.environment : test
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ config:
11
11
http-server.http.port : 8080
12
12
dataStore :
13
13
# The connection details for the backend database for Trino Gateway and Trino query history
14
- jdbcUrl : jdbc:postgresql://gateway-backend-db-postgresql.postgres-gateway.svc.cluster.local :5432/gateway
14
+ jdbcUrl : jdbc:postgresql://${ENV:PG_HOST} :5432/gateway
15
15
user : " ${ENV:PG_USER}"
16
16
password : " ${ENV:PG_PASSWORD}"
17
17
driver : org.postgresql.Driver
@@ -28,6 +28,10 @@ envFrom:
28
28
- secretRef :
29
29
name : db-credentials
30
30
31
+ env :
32
+ - name : PG_HOST
33
+ value : gateway-backend-db-postgresql.postgres-gateway.svc.cluster.local
34
+
31
35
resources :
32
36
limits :
33
37
cpu : 500m
You can’t perform that action at this time.
0 commit comments