Skip to content

Commit 0a42362

Browse files
cccs-niknineinchnick
authored andcommitted
volumes and volumeMounts as lists with tpl
1 parent 712e9c0 commit 0a42362

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

charts/gateway/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ A Helm chart for Trino Gateway
131131
* `readinessProbe.failureThreshold` - int, default: `12`
132132
* `readinessProbe.timeoutSeconds` - int, default: `1`
133133
* `readinessProbe.scheme` - string, default: `"HTTP"`
134-
* `volumes` - object, default: `{}`
135-
* `volumeMounts` - object, default: `{}`
134+
* `volumes` - list, default: `[]`
135+
* `volumeMounts` - list, default: `[]`
136136
* `lifecycle` - object, default: `{}`
137137

138138
Container lifecycle events.

charts/gateway/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ spec:
9797
subPath: "config.yaml"
9898
readOnly: true
9999
{{- with .Values.volumeMounts }}
100-
{{- toYaml . | nindent 12 }}
100+
{{- tpl (toYaml .) $ | nindent 12 }}
101101
{{- end }}
102102
lifecycle:
103103
{{- toYaml .Values.lifecycle | nindent 12 }}
@@ -107,7 +107,7 @@ spec:
107107
secretName: {{ include "trino-gateway.fullname" . }}-configuration
108108
optional: false
109109
{{- with .Values.volumes }}
110-
{{- toYaml . | nindent 8 }}
110+
{{- tpl (toYaml .) $ | nindent 8 }}
111111
{{- end }}
112112
{{- with .Values.nodeSelector }}
113113
nodeSelector:

charts/gateway/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ readinessProbe:
172172
timeoutSeconds: 1
173173
scheme: HTTP
174174

175-
volumes: {}
175+
volumes: []
176176

177-
volumeMounts: {}
177+
volumeMounts: []
178178

179179
# -- Container lifecycle events.
180180
# @raw

0 commit comments

Comments
 (0)