diff --git a/pkg/template/static_context.go b/pkg/template/static_context.go index 270f97144a..ad2a3fcff1 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["PrivateCACert"] = ctx.privateCACert + return funcMap } @@ -676,3 +678,8 @@ func (ctx StaticCtx) lookup(apiversion string, resource string, namespace string } return obj } + +func (ctx StaticCtx) privateCACert() 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") +}