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" . }}