Skip to content

Commit c0f99ca

Browse files
authored
Merge pull request #2633 from replicatedhq/laverya/sc-111792/support-installing-behind-a-mitm-proxy-that
HOLD FOR RELEASE: Document PrivateCACert template function
2 parents e85cecc + 303b2ab commit c0f99ca

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/reference/template-functions-static-context.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,23 @@ ParseUint returns the unsigned integer value represented by the string with opti
330330
'{{repl ConfigOption "str_value" | ParseUint }}'
331331
```
332332
333+
334+
## PrivateCACert
335+
336+
> Introduced in KOTS v1.117.0
337+
338+
```go
339+
func PrivateCACert() string
340+
```
341+
342+
PrivateCACert returns the name of a ConfigMap created by KOTS that contains private CA certificates provided by the end user. For example, for Embedded Cluster installations, these certificates are provided with the `--private-ca` flag for the `install` command.
343+
344+
You can use this template function to mount the specified ConfigMap so your containers can access the internet through enterprise proxies that issue their own TLS certificates in order to inspect traffic.
345+
346+
:::note
347+
This function will return the name of the ConfigMap even if the ConfigMap has no entries. If no ConfigMap exists, this function returns the empty string.
348+
:::
349+
333350
## TLSCert
334351
335352
**Deprecation Notice**: This function has been superseded in Replicated KOTS v1.26.0 by the sprig crypto functions. For more information, see [Using Variables to Generate TLS Certificates in JSON](template-functions-examples#using-variables-to-generate-tls-certificates-in-json). For more information about the sprig crypto function, see [Cryptographic and Security Functions](http://masterminds.github.io/sprig/crypto.html) in the sprig documentation.

0 commit comments

Comments
 (0)