From 5599ad6cdd9c580652a2c0e3fdfa1b7fb73179bb Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 16 Dec 2024 15:04:31 -0600 Subject: [PATCH] resolve #178 inherit tolerations and nodeselector from tserver] (#179) Co-authored-by: dgparker --- stable/yugabyte/templates/hooks/setup-credentials-job.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stable/yugabyte/templates/hooks/setup-credentials-job.yaml b/stable/yugabyte/templates/hooks/setup-credentials-job.yaml index 1bde38cbae..d1ef65fcb2 100644 --- a/stable/yugabyte/templates/hooks/setup-credentials-job.yaml +++ b/stable/yugabyte/templates/hooks/setup-credentials-job.yaml @@ -24,6 +24,12 @@ spec: chart: "{{ .Chart.Name }}" component: "{{ .Values.Component }}" spec: + {{- if .Values.nodeSelector }} + nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.tserver.tolerations }} + tolerations: {{ toYaml .Values.tserver.tolerations | nindent 8 }} + {{- end }} restartPolicy: Never containers: - name: setup-credentials