diff --git a/charts/trino/README.md b/charts/trino/README.md index c24c6ccc..4d1ddebf 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -14,6 +14,7 @@ The following table lists the configurable parameters of the Trino chart and the | `image.repository` | | `"trinodb/trino"` | | `image.pullPolicy` | | `"IfNotPresent"` | | `image.tag` | | `"latest"` | +| `imagePullSecrets` | | `[{"name": "registry-credentials"}]` | | `server.workers` | | `2` | | `server.node.environment` | | `"production"` | | `server.node.dataDir` | | `"/data/trino"` | diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 8e5d4afd..90b309a6 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -48,7 +48,7 @@ spec: secretName: {{ .secretName }} {{- end }} imagePullSecrets: - - name: registry-credentials + {{- toYaml .Values.imagePullSecrets | nindent 8 }} containers: - name: {{ .Chart.Name }}-coordinator image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index 341d57a1..a07464ca 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -36,7 +36,7 @@ spec: {{- tpl (toYaml .Values.initContainers.worker) . | nindent 6 }} {{- end }} imagePullSecrets: - - name: registry-credentials + {{- toYaml .Values.imagePullSecrets | nindent 8 }} containers: - name: {{ .Chart.Name }}-worker image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index 0dcc6927..be2f5091 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -8,6 +8,9 @@ image: # Overrides the image tag whose default is the chart version. tag: latest +imagePullSecrets: + - name: registry-credentials + server: workers: 2 node: