- name: harbor-certificate-generator
  namespace: {{ .Modules.Registry.Namespace }}
  create_namespace: true
  chart_ref: {{ .Modules.Registry.Tls.CertificateGenerator.ChartRef }}
  chart_version: {{ .Modules.Registry.Tls.CertificateGenerator.ChartVersion }}
  {{- if and .Modules.Registry.Enabled (eq .Modules.Registry.Expose.Type "ingress") }}
  release_state: "present"
  {{- else }}
  release_state: "absent"
  {{- end }}
  values:
    issuer_email: {{ .Modules.Additional.CertManager.AccountEmail }}
    solver_ingress_class: {{ .Modules.Additional.Ingress.Type }}

    certificates:
      - name: harbor-tls
        domain: {{ .Modules.Registry.Expose.Domain }}
