diff --git a/charts/trino/README.md b/charts/trino/README.md index 0d8cd76d..6b07c111 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -282,6 +282,15 @@ Fast distributed SQL query engine for big data analytics that helps you explore * `serviceAccount.annotations` - object, default: `{}` Annotations to add to the service account +* `configMounts` - list, default: `[]` + + Allows mounting additional Trino configuration files from Kubernetes config maps on all nodes. + Example: + ```yaml + - name: sample-config-mount + configMap: sample-config-map + path: /config-map/sample.json + ``` * `secretMounts` - list, default: `[]` Allows mounting additional Trino configuration files from Kubernetes secrets on all nodes. @@ -363,6 +372,15 @@ Fast distributed SQL query engine for big data analytics that helps you explore readOnly: true * `coordinator.annotations` - object, default: `{}` * `coordinator.labels` - object, default: `{}` +* `coordinator.configMounts` - list, default: `[]` + + Allows mounting additional Trino configuration files from Kubernetes config maps on the coordinator node. + Example: + ```yaml + - name: sample-config-mount + configMap: sample-config-mount + path: /config-mount/sample.json + ``` * `coordinator.secretMounts` - list, default: `[]` Allows mounting additional Trino configuration files from Kubernetes secrets on the coordinator node. @@ -444,6 +462,15 @@ Fast distributed SQL query engine for big data analytics that helps you explore ``` * `worker.annotations` - object, default: `{}` * `worker.labels` - object, default: `{}` +* `worker.configMounts` - list, default: `[]` + + Allows mounting additional Trino configuration files from Kubernetes config maps on all worker nodes. + Example: + ```yaml + - name: sample-config-mount + configMap: sample-config-mount + path: /config-mount/sample.json + ``` * `worker.secretMounts` - list, default: `[]` Allows mounting additional Trino configuration files from Kubernetes secrets on all worker nodes. diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 8736a76b..b3ff3727 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -85,6 +85,16 @@ spec: path: group.db {{- end }} {{- end }} + {{- range .Values.configMounts }} + - name: {{ .name }} + configMap: + name: {{ .configMap }} + {{- end }} + {{- range .Values.coordinator.configMounts }} + - name: {{ .name }} + configMap: + name: {{ .configMap }} + {{- end }} {{- range .Values.secretMounts }} - name: {{ .name }} secret: @@ -130,6 +140,14 @@ spec: - mountPath: {{ .Values.server.config.path }}/resource-groups name: resource-groups-volume {{- end }} + {{- range .Values.configMounts }} + - name: {{ .name }} + mountPath: {{ .path }} + {{- end }} + {{- range .Values.coordinator.configMounts }} + - name: {{ .name }} + mountPath: {{ .path }} + {{- end }} {{- range .Values.secretMounts }} - name: {{ .name }} mountPath: {{ .path }} diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index a745afac..60fadae5 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -59,6 +59,16 @@ spec: - name: schemas-volume configMap: name: schemas-volume-worker + {{- range .Values.configMounts }} + - name: {{ .name }} + configMap: + name: {{ .configMap }} + {{- end }} + {{- range .Values.worker.configMounts }} + - name: {{ .name }} + configMap: + name: {{ .configMap }} + {{- end }} {{- range .Values.secretMounts }} - name: {{ .name }} secret: @@ -96,6 +106,14 @@ spec: name: catalog-volume - mountPath: {{ .Values.kafka.mountPath }} name: schemas-volume + {{- range .Values.configMounts }} + - name: {{ .name }} + mountPath: {{ .path }} + {{- end }} + {{- range .Values.worker.configMounts }} + - name: {{ .name }} + mountPath: {{ .path }} + {{- end }} {{- range .Values.secretMounts }} - name: {{ .name }} mountPath: {{ .path }} diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index e0e31fa6..ba0aa03a 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -310,6 +310,17 @@ serviceAccount: # -- Annotations to add to the service account annotations: {} +configMounts: [] +# configMounts -- Allows mounting additional Trino configuration files from +# Kubernetes config maps on all nodes. +# @raw +# Example: +# ```yaml +# - name: sample-config-mount +# configMap: sample-config-map +# path: /config-map/sample.json +# ``` + secretMounts: [] # secretMounts -- Allows mounting additional Trino configuration files from # Kubernetes secrets on all nodes. @@ -424,6 +435,17 @@ coordinator: labels: {} + configMounts: [] + # coordinator.configMounts -- Allows mounting additional Trino configuration + # files from Kubernetes config maps on the coordinator node. + # @raw + # Example: + # ```yaml + # - name: sample-config-mount + # configMap: sample-config-mount + # path: /config-mount/sample.json + # ``` + secretMounts: [] # coordinator.secretMounts -- Allows mounting additional Trino configuration # files from Kubernetes secrets on the coordinator node. @@ -543,6 +565,17 @@ worker: labels: {} + configMounts: [] + # worker.configMounts -- Allows mounting additional Trino configuration + # files from Kubernetes config maps on all worker nodes. + # @raw + # Example: + # ```yaml + # - name: sample-config-mount + # configMap: sample-config-mount + # path: /config-mount/sample.json + # ``` + secretMounts: [] # worker.secretMounts -- Allows mounting additional Trino configuration # files from Kubernetes secrets on all worker nodes.