{{- if .Values.hadoop.spec.config.azure.createSecret -}}
apiVersion: v1
kind: Secret
metadata:
  name: hadoop-azure-credentials
data:
{{- if .Values.hadoop.spec.config.azure.storageAccountName }}
  azure-storage-account-name: {{ .Values.hadoop.spec.config.azure.storageAccountName | b64enc | quote}}
{{- end }}
{{- if .Values.hadoop.spec.config.azure.secretAccessKey }}
  azure-secret-access-key: {{ .Values.hadoop.spec.config.azure.secretAccessKey | b64enc | quote}}
{{- end }}
{{- end -}}
