diff --git a/charts/trino/README.md b/charts/trino/README.md index 5ef37834..7f287285 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -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"` | @@ -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` | | `{}` | diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index edd81252..75d50f97 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -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 }} diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index 98fb7130..c04b9f7c 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -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: @@ -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 }} diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index 2d9c399a..fa438e35 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -196,6 +196,10 @@ coordinator: additionalConfigFiles: {} + annotations: {} + + labels: {} + worker: jvm: maxHeapSize: "8G" @@ -247,6 +251,10 @@ worker: additionalConfigFiles: {} + annotations: {} + + labels: {} + kafka: mountPath: "/etc/trino/schemas" tableDescriptions: {}