From 133566eec932a7250613b53810ed89a8ab107f39 Mon Sep 17 00:00:00 2001 From: Haiwei Liu Date: Fri, 1 Nov 2024 16:01:30 +0800 Subject: [PATCH] feat: pre-install-initdb support affinity,tolerations Signed-off-by: Haiwei Liu --- charts/jumpserver/templates/pre-install-initdb.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/jumpserver/templates/pre-install-initdb.yaml b/charts/jumpserver/templates/pre-install-initdb.yaml index 6b05eee..0d46391 100644 --- a/charts/jumpserver/templates/pre-install-initdb.yaml +++ b/charts/jumpserver/templates/pre-install-initdb.yaml @@ -92,4 +92,12 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }}