apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
  name: {{ .Values.issuer.name }}
  namespace: {{ .Release.Namespace }}
spec:
  acme:
    server: {{ .Values.issuer.server }}
    email: {{ .Values.issuer.contactEmail }}
    privateKeySecretRef:
      name: issuer-{{ .Values.issuer.name }}-account-key
    solvers:
    - dns01:
        webhook:
          groupName: dodo.cloud
          solverName: pcloud-dns-solver
          config:
            createAddress: "http://ns-controller.dodo-dns-zone-manager.svc.cluster.local/create-txt-record"
            deleteAddress: "http://ns-controller.dodo-dns-zone-manager.svc.cluster.local/delete-txt-record"
