Correction of the conditional statement
[oom.git] / kubernetes / aaf / components / aaf-sshsm / charts / aaf-sshsm-abrmd / templates / job.yaml
index 23fe79d..9bb5937 100644 (file)
@@ -51,10 +51,10 @@ spec:
         resources: {{ toYaml .Values.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 }}