Files
homelab/charts/apps/certs/templates/_helpers/certificate.tpl
T
2025-04-21 22:36:27 -04:00

15 lines
457 B
Smarty

{{ define "homelab.cert" }}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: cloudflare-wildcard{{.prefix | default ""}}{{ .root }}.{{ .domain }}
spec:
secretName: cloudflare-wildcard{{.prefix | default ""}}{{ .root }}.{{ .domain }}
issuerRef:
name: cloudflare
kind: Issuer
commonName: '*{{.prefix | default ""}}{{ .root }}.{{ .domain }}'
dnsNames:
- "*{{.prefix | default ""}}{{ .root }}.{{ .domain }}"
{{ end }}