27 lines
590 B
Smarty
27 lines
590 B
Smarty
|
{{/* Define the tlsOptions */}}
|
||
|
{{- define "traefik.tlsstore" -}}
|
||
|
{{- if .Values.defaultCertificate }}
|
||
|
---
|
||
|
apiVersion: traefik.io/v1alpha1
|
||
|
kind: TLSStore
|
||
|
metadata:
|
||
|
name: default
|
||
|
spec:
|
||
|
certificates:
|
||
|
- secretName: clusterissuer-templated-{{ tpl .Values.defaultCertificate $ }}
|
||
|
defaultCertificate:
|
||
|
secretName: clusterissuer-templated-{{ 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 }}
|