Merge "Remove fields not defined in jobs specification"
[oom.git] / kubernetes / aaf / components / aaf-sshsm / charts / aaf-sshsm-abrmd / templates / job.yaml
index 63ea8de..90d1899 100644 (file)
@@ -51,10 +51,10 @@ spec:
         resources: {{ include "common.resources" . | nindent 10 }}
       {{- if .Values.nodeSelector }}
       nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
-        {{- end -}}
         {{- if .Values.global.tpm.enabled }}
         {{ (printf "%s: \"%s\"" .Values.global.tpm.nodeLabel .Values.global.tpm.nodeLabelValue) }}
         {{- end -}}
+      {{- end -}}
         {{- if .Values.affinity }}
       affinity: {{ toYaml .Values.affinity | nindent 8 }}
         {{- end }}