Skip to content

Commit

Permalink
fix(docs): add missing recursive-rendering var
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri1969 authored and tchiotludo committed Mar 13, 2024
1 parent 444bffb commit 6cbbea1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion content/docs/10.configuration-guide/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ icon: /docs/icons/admin.svg
This section lists how you can configure variables usage in Kestra.

## `kestra.variables.env-vars-prefix`

Kestra provides a way to use environment variables in your flow. By default, Kestra will only look at environment variables that start with `KESTRA_`. You can change this prefix by setting the `env-vars-prefix` configuration option:

```yaml
Expand All @@ -18,12 +19,12 @@ These variables will be accessible in a flow with `{{ envs.your_env }}` in **low

For example, an environment variable with the name `KESTRA_MY_ENV` can be accessed using `{{ envs.my_env }}`.


## `kestra.variables.globals`

You can also set global variables directly in the configuration file. These variables will be accessible in all flows across the instance.

For example, the following variable will be accessible in a flow using `{{ globals.environment_name }}`:

```yaml
kestra:
variables:
Expand All @@ -41,11 +42,17 @@ kestra:
```

## `kestra.variables.disable-handlebars`

By default, [deprecated handlebars](../07.concepts/expression/08.deprecated-handlebars.md) feature is disabled, it can be enabled by setting this option to `true`.

## `kestra.variables.recursive-rendering`

Flag enabling the pre-0.14.0 [template recursive rendering](../10.migration-guide/recursive-rendering.md) behavior and giving administrators more time to migrate deployed flows. Defaults to `false`.

## `kestra.variables.cache-enabled`

The rendering of template variables can be CPU intensive, and by default we **enable** a cache of "templates". You can disable it, even though it's recommended keeping it enabled.

## `kestra.variables.cache-size`

The rendering of template variables cache is an LRU cache (keeps most commonly used variables) and will be cached in memory (default `1000`). You can change the size of the template cache (in number of templates) using this configuration. Keep in mind that the higher this number will be, the more memory the server will use.

0 comments on commit 6cbbea1

Please sign in to comment.