# helm_charts_additional-secrets.yaml
{{ if .Values.halyard.additionalSecrets.create -}}
apiVersion: v1
kind: Secret
metadata:
  name: {{ template "spinnaker.fullname" . }}-additional-secrets
  labels:
{{ include "spinnaker.standard-labels" . | indent 4 }}
data:
{{- if  and .Values.halyard.additionalSecrets.create .Values.halyard.additionalSecrets.data }}
{{- range $index, $content := .Values.halyard.additionalSecrets.data }}
  {{ $index }}: |-
{{ $content | indent 4 }}
{{- end }}
{{- end }}
{{- end }}