Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add PrivateCACert template function #4878

Merged
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkg/template/static_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func (ctx StaticCtx) FuncMap() template.FuncMap {

funcMap["Lookup"] = ctx.lookup

funcMap["AdditionalTLSCACert"] = ctx.additionalTLSCACert
laverya marked this conversation as resolved.
Show resolved Hide resolved

return funcMap
}

Expand Down Expand Up @@ -676,3 +678,8 @@ func (ctx StaticCtx) lookup(apiversion string, resource string, namespace string
}
return obj
}

func (ctx StaticCtx) additionalTLSCACert() string {
laverya marked this conversation as resolved.
Show resolved Hide resolved
// return the name of a configmap holding additional CA certificates provided by the end user at install time
return os.Getenv("SSL_CERT_CONFIGMAP")
}
Loading