Skip to content

Commit

Permalink
feat: make it possible to add you own volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
philipsens committed Jan 23, 2024
1 parent de22ca6 commit 5106617
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/drill/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: drill
version: 1.2.13
version: 1.3.0
appVersion: 1.21.1
description: Helm Charts for deploying Apache Drill Clusters on Kubernetes
icon: https://raw.githubusercontent.com/wearefrank/charts/master/charts/drill/icon.svg
Expand Down
2 changes: 2 additions & 0 deletions charts/drill/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ For more options refer to the [Apache Drill documentation](https://drill.apache.
| `drill.authentication.users.name` | Username for the user | `""` |
| `drill.authentication.users.password` | Password for the user | `""` |
| `drill.authentication.users.admin` | Configures if the user should be admin | `""` |
| `extraVolumes` | Optionally specify extra list of additional volumes for Drill pods | `[]` |
| `extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for Drill container(s) | `[]` |

### Persistence

Expand Down
6 changes: 6 additions & 0 deletions charts/drill/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ spec:
mountPath: "/opt/drill/jars/3rdparty/{{ .name }}.jar"
subPath: "3rdparty/{{ .name }}"
{{- end }}
{{- if .Values.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
Expand Down Expand Up @@ -132,6 +135,9 @@ spec:
- name: {{ template "drill.fullname" . }}-log
emptyDir: { }
{{- end }}
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
{{- end }}
initContainers:
{{- range .Values.drill.drivers }}
- name: download-{{ .name }}-driver
Expand Down
12 changes: 12 additions & 0 deletions charts/drill/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,18 @@
}
}
},
"extraVolumes": {
"type": "array",
"description": "Optionally specify extra list of additional volumes for Drill pods",
"default": [],
"items": {}
},
"extraVolumeMounts": {
"type": "array",
"description": "Optionally specify extra list of additional volumeMounts for Drill container(s)",
"default": [],
"items": {}
},
"persistence": {
"type": "object",
"properties": {
Expand Down
7 changes: 7 additions & 0 deletions charts/drill/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,13 @@ drill:
##
users: [ ]

## @param extraVolumes Optionally specify extra list of additional volumes for Drill pods
##
extraVolumes: []
## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for Drill container(s)
##
extraVolumeMounts: []

## @section Persistence
## @descriptionStart
## Persistence is used for logging and for JDBC drivers. These can be configured separately.
Expand Down

0 comments on commit 5106617

Please sign in to comment.