apiVersion: v1
kind: Secret
metadata:
  name: {{ template "ethereum.fullname" . }}-geth-account
  labels:
    app: {{ template "ethereum.name" . }}
    chart: {{ template "ethereum.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
type: Opaque
data:
  {{- if .Values.geth.account.privateKey }}
  accountPrivateKey: {{ .Values.geth.account.privateKey | b64enc | quote }}
  {{- end }}
  {{- if .Values.geth.account.secret }}
  accountSecret: {{ .Values.geth.account.secret | b64enc | quote }}
  {{- end }}