apiVersion: v1
kind: Secret
metadata:
  name: {{ include "nginx.secretName" . }}
type: Opaque
data:
  {{ if eq (include "nginx.certAvailable" .) "true" }}
  certPublicKey: {{ (include "nginx.cert.publicKey" .) | toString | b64enc | quote }}
  certPrivateKey: {{ (include "nginx.cert.privateKey" .) | toString | b64enc | quote }}
  {{ end }}
