From 6f3b39e27e15f8efa77c13989cb22afcb2bd5267 Mon Sep 17 00:00:00 2001 From: Niki Dokovski Date: Sat, 18 Nov 2023 15:48:47 +0100 Subject: [PATCH] share data node affinity and tolerations with security admin job --- chart/templates/opensearch/os-securityadmin-job.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chart/templates/opensearch/os-securityadmin-job.yaml b/chart/templates/opensearch/os-securityadmin-job.yaml index acb71be..550d162 100644 --- a/chart/templates/opensearch/os-securityadmin-job.yaml +++ b/chart/templates/opensearch/os-securityadmin-job.yaml @@ -28,6 +28,12 @@ spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{ toYaml . | nindent 6 }} {{- end }} + {{- with .Values.data.affinity }} + affinity: {{ toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.data.tolerations }} + tolerations: {{ toYaml . | nindent 8 }} + {{- end }} initContainers: - name: init image: {{ include "init_container.image" . }}