apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: {{ include "mailproxy.fullname" . }} labels: {{- include "mailproxy.labels" . | nindent 4 }} spec: secretName: {{ include "mailproxy.fullname" . }}-tls issuerRef: name: {{ .Values.nginx.certificate.issuer }} dnsNames: {{- toYaml .Values.nginx.certificate.dnsNames | nindent 4 }}