Add support for fetching k8s Ingress TLS data from secrets
This commit is contained in:
parent
9b3750320b
commit
8327dd0c0b
7 changed files with 495 additions and 3 deletions
|
@ -837,7 +837,18 @@ var _templatesKubernetesTmpl = []byte(`[backends]{{range $backendName, $backend
|
|||
[frontends."{{$frontendName}}".routes."{{$routeName}}"]
|
||||
rule = "{{$route.Rule}}"
|
||||
{{end}}
|
||||
{{end}}`)
|
||||
{{end}}
|
||||
|
||||
{{range $tlsConfiguration := .TLSConfiguration}}
|
||||
[[tlsConfiguration]]
|
||||
entryPoints = [{{range $tlsConfiguration.EntryPoints}}
|
||||
"{{.}}",
|
||||
{{end}}]
|
||||
[tlsConfiguration.certificate]
|
||||
certFile = """{{$tlsConfiguration.Certificate.CertFile}}"""
|
||||
keyFile = """{{$tlsConfiguration.Certificate.KeyFile}}"""
|
||||
{{end}}
|
||||
`)
|
||||
|
||||
func templatesKubernetesTmplBytes() ([]byte, error) {
|
||||
return _templatesKubernetesTmpl, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue