feat: support per-app letsencrypt emails on k3s

The `letsencrypt-email-prod` and `letsencrypt-email-stag` properties can now be set per app in addition to globally, resolving app-level before the global value for the app's selected `letsencrypt-server`. An app that sets its own email renders a namespaced cert-manager `Issuer` using that email, while apps without an override continue to use the shared `ClusterIssuer` with the global email.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-07-19 03:31:55 -04:00
1 parent 05ce8fb68e
commit dc802ddd19
11 files changed
+441 -25

No files matched your search

@@ -0,0 +1,23 @@
{{- if .Values.global.issuer.enabled }}
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
annotations:
dokku.com/managed: "true"
labels:
app.kubernetes.io/name: {{ .Values.global.issuer.name }}
app.kubernetes.io/part-of: {{ .Values.global.app_name }}
name: {{ .Values.global.issuer.name }}
namespace: {{ .Values.global.namespace }}
spec:
acme:
email: {{ .Values.global.issuer.email }}
server: {{ .Values.global.issuer.server }}
privateKeySecretRef:
name: {{ .Values.global.issuer.name }}
solvers:
- http01:
ingress:
class: {{ .Values.global.issuer.ingress_class }}
{{- end }}