Skip to content

Commit

Permalink
Allow annotations for the worker and coordinator pods
Browse files Browse the repository at this point in the history
Update charts/trino/README.md

Add labels for worker and coordinator

Fix spacing
  • Loading branch information
mjpsyapse authored and mosabua committed May 30, 2023
1 parent 752aa6e commit eb6a315
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ The following table lists the configurable parameters of the Trino chart and the
| `coordinator.tolerations` | | `[]` |
| `coordinator.affinity` | | `{}` |
| `coordinator.additionalConfigFiles` | | `{}` |
| `coordinator.annotations` | | `{}` |
| `coordinator.labels` | | `{}` |
| `worker.jvm.maxHeapSize` | | `"8G"` |
| `worker.jvm.gcMethod.type` | | `"UseG1GC"` |
| `worker.jvm.gcMethod.g1.heapRegionSize` | | `"32M"` |
Expand All @@ -80,6 +82,8 @@ The following table lists the configurable parameters of the Trino chart and the
| `worker.tolerations` | | `[]` |
| `worker.affinity` | | `{}` |
| `worker.additionalConfigFiles` | | `{}` |
| `worker.annotations` | | `{}` |
| `worker.labels` | | `{}` |
| `kafka.mountPath` | | `"/etc/trino/schemas"` |
| `kafka.tableDescriptions` | | `{}` |

Expand Down
7 changes: 7 additions & 0 deletions charts/trino/templates/deployment-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ spec:
component: coordinator
template:
metadata:
{{- if .Values.coordinator.annotations }}
annotations:
{{- tpl (toYaml .Values.coordinator.annotations) . | nindent 8 }}
{{- end }}
labels:
app: {{ template "trino.name" . }}
release: {{ .Release.Name }}
component: coordinator
{{- if .Values.coordinator.labels }}
{{- tpl (toYaml .Values.coordinator.labels) . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ include "trino.serviceAccountName" . }}
{{- with .Values.securityContext }}
Expand Down
9 changes: 8 additions & 1 deletion charts/trino/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ spec:
component: worker
template:
metadata:
{{- if .Values.worker.annotations }}
annotations:
{{- tpl (toYaml .Values.worker.annotations) . | nindent 8 }}
{{- end }}
labels:
app: {{ template "trino.name" . }}
release: {{ .Release.Name }}
component: worker
{{- if .Values.worker.labels }}
{{- tpl (toYaml .Values.worker.labels) . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ include "trino.serviceAccountName" . }}
volumes:
Expand All @@ -36,7 +43,7 @@ spec:
name: schemas-volume-worker
{{- if .Values.initContainers.worker }}
initContainers:
{{- tpl (toYaml .Values.initContainers.worker) . | nindent 6 }}
{{- tpl (toYaml .Values.initContainers.worker) . | nindent 6 }}
{{- end }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
Expand Down
8 changes: 8 additions & 0 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ coordinator:

additionalConfigFiles: {}

annotations: {}

labels: {}

worker:
jvm:
maxHeapSize: "8G"
Expand Down Expand Up @@ -247,6 +251,10 @@ worker:

additionalConfigFiles: {}

annotations: {}

labels: {}

kafka:
mountPath: "/etc/trino/schemas"
tableDescriptions: {}
Expand Down

0 comments on commit eb6a315

Please sign in to comment.