Merge pull request #138 from stoned/doc-xref

Minor documentation fixes
This commit is contained in:
yxxhero 2022-06-05 21:20:33 +08:00 committed by GitHub
commit 9032395818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# Template Functions # Template Functions
#### `requiredEnv` #### `requiredEnv`
The `requiredEnv` function allows you to declare a particular environment variable as required for template rendering. The `requiredEnv` function allows you to declare a particular environment variable as required for template rendering.
If the environment variable is unset or empty, the template rendering will fail with an error message. If the environment variable is unset or empty, the template rendering will fail with an error message.
@ -86,8 +86,8 @@ The `fetchSecretValue` function parses the argument as a [vals](https://github.c
``` ```
#### `expandSecretRefs` #### `expandSecretRefs`
The `expandSecretRefs` function takes an object as the argument and expands every [vals](https://github.com/variantdev/vals) secret reference URL embedded in the object's values. See ["Remote Secrets" page in our documentation](./templating_funcs.md) for more information. The `expandSecretRefs` function takes an object as the argument and expands every [vals](https://github.com/variantdev/vals) secret reference URL embedded in the object's values. See ["Remote Secrets" page in our documentation](./remote-secrets.md) for more information.
```yaml ```yaml
{{ $expandSecretRefs := $value | expandSecretRefs }} {{ $expandSecretRefs := $value | expandSecretRefs }}
``` ```