diff --git a/pkg/template/static_context.go b/pkg/template/static_context.go index 270f97144a..097aceec8f 100644 --- a/pkg/template/static_context.go +++ b/pkg/template/static_context.go @@ -110,6 +110,8 @@ func (ctx StaticCtx) FuncMap() template.FuncMap { funcMap["Lookup"] = ctx.lookup + funcMap["AdditionalTLSCACert"] = ctx.additionalTLSCACert + return funcMap } @@ -676,3 +678,8 @@ func (ctx StaticCtx) lookup(apiversion string, resource string, namespace string } return obj } + +func (ctx StaticCtx) additionalTLSCACert() string { + // return the name of a configmap holding additional CA certificates provided by the end user at install time + return os.Getenv("SSL_CERT_CONFIGMAP") +}