scale-catalog/premium/traefik/27.0.13/templates/_tlsstore.tpl
Julian Haseleu 5d1ab94342 cleanup
2024-07-14 21:54:53 +00:00

27 lines
580 B
Smarty

{{/* Define the tlsOptions */}}
{{- define "traefik.tlsstore" -}}
{{- if .Values.defaultCertificate }}
---
apiVersion: traefik.io/v1alpha1
kind: TLSStore
metadata:
name: default
spec:
certificates:
- secretName: certificate-issuer-{{ tpl .Values.defaultCertificate $ }}
defaultCertificate:
secretName: certificate-issuer-{{ tpl .Values.defaultCertificate $ }}
{{- end }}
{{- range $name, $config := .Values.tlsStore }}
---
apiVersion: traefik.io/v1alpha1
kind: TLSStore
metadata:
name: {{ $name }}
spec:
{{- toYaml $config | nindent 2 }}
{{- end }}
{{- end }}