2023-11-25 23:50:19 +00:00
|
|
|
{{/* Define the tlsOptions */}}
|
|
|
|
{{- define "traefik.tlsstore" -}}
|
|
|
|
{{- if .Values.defaultCertificate }}
|
|
|
|
---
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
kind: TLSStore
|
|
|
|
metadata:
|
|
|
|
name: default
|
|
|
|
spec:
|
|
|
|
certificates:
|
2024-03-04 16:15:50 +00:00
|
|
|
- secretName: certificate-issuer-{{ tpl .Values.defaultCertificate $ }}
|
2023-11-25 23:50:19 +00:00
|
|
|
defaultCertificate:
|
2024-03-04 16:15:50 +00:00
|
|
|
secretName: certificate-issuer-{{ tpl .Values.defaultCertificate $ }}
|
2023-11-25 23:50:19 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- range $name, $config := .Values.tlsStore }}
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
kind: TLSStore
|
|
|
|
metadata:
|
|
|
|
name: {{ $name }}
|
|
|
|
spec:
|
|
|
|
{{- toYaml $config | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|