feat: apply the cluster issuers on every app deploy

This ensures we can always get certificates regardless of what app gets deployed with whatever configuration.
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-01-23 07:25:03 -05:00
1 parent c8f5ad9029
commit 4a7db5ce24
4 files changed
+154 -81

No files matched your search

@@ -0,0 +1,19 @@
{{- range $name, $config := .Values.cluster_issuers }}
{{- if $config.enabled }}
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: {{ $config.name }}
spec:
acme:
email: {{ $config.email }}
server: {{ $config.server }}
privateKeySecretRef:
name: {{ $config.name }}
solvers:
- http01:
ingress:
class: {{ $config.ingress_class }}
{{- end }}
{{- end }}