From 2fdefa258e0227e3e16eea238b81c17a570a9db0 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Mon, 1 Jan 2018 03:22:53 +0100 Subject: [PATCH] feat(consulcatalog): add passTLSCert tags. --- provider/consul/consul_catalog_config.go | 1 + templates/consul_catalog.tmpl | 1 + 2 files changed, 2 insertions(+) diff --git a/provider/consul/consul_catalog_config.go b/provider/consul/consul_catalog_config.go index 9bca70dbb..8634dc892 100644 --- a/provider/consul/consul_catalog_config.go +++ b/provider/consul/consul_catalog_config.go @@ -45,6 +45,7 @@ func (p *CatalogProvider) buildConfiguration(catalog []catalogUpdate) *types.Con "getFrontEndEntryPoints": p.getFuncSliceAttribute(label.SuffixFrontendEntryPoints), // TODO [breaking] rename to getEntryPoints when getEntryPoints will be removed "getPriority": p.getFuncIntAttribute(label.SuffixFrontendPriority, 0), "getPassHostHeader": p.getFuncBoolAttribute(label.SuffixFrontendPassHostHeader, true), + "getPassTLSCert": p.getFuncBoolAttribute(label.SuffixFrontendPassTLSCert, label.DefaultPassTLSCert), } var allNodes []*api.ServiceEntry diff --git a/templates/consul_catalog.tmpl b/templates/consul_catalog.tmpl index 4eca85c20..0d70a44cf 100644 --- a/templates/consul_catalog.tmpl +++ b/templates/consul_catalog.tmpl @@ -42,6 +42,7 @@ backend = "backend-{{ $service.ServiceName }}" priority = {{ getPriority $service.Attributes }} passHostHeader = {{ getPassHostHeader $service.Attributes }} + passTLSCert = {{ getPassTLSCert $service.Attributes }} entryPoints = [{{range getFrontEndEntryPoints $service.Attributes }} "{{.}}",