diff --git a/docs/data-sources/flow.md b/docs/data-sources/flow.md index f38d4be..620d0d7 100644 --- a/docs/data-sources/flow.md +++ b/docs/data-sources/flow.md @@ -29,7 +29,7 @@ data "kestra_flow" "example" { ### Optional -- `keep_original_source` (Boolean) Use the content as source code, keeping comment and indentation. Defaults to `false`. +- `keep_original_source` (Boolean) Use the content as source code, keeping comment and indentation. Defaults to `true`. ### Read-Only diff --git a/docs/guides/working-with-yaml.md b/docs/guides/working-with-yaml.md index 612d807..a0c196b 100644 --- a/docs/guides/working-with-yaml.md +++ b/docs/guides/working-with-yaml.md @@ -10,8 +10,8 @@ Most of kestra ressource need to be described as Yaml like [kestra_flow](../reso We have chosen to use a full yaml in terraform definition since the structure is recursive and dynamic, so it can't be described using terraform internal schema. There is 2 ways (for flow) to handle yaml: -* use `keep_original_source = true` method: the raw yaml will be send and save in Kestra. -* use `keep_original_source = false` method: the default one (due to BC change), the yaml will be encoded in json before behind to the server, so comment and indent will be handle by the server +* use `keep_original_source = true` method: the default one, the raw yaml will be send and save in Kestra. +* use `keep_original_source = false` method: the yaml will be encoded in json before behind to the server, so comment and indent will be handle by the server !> Take care with `keep_original_source = false` that this terraform provider is not aware of task & plugins. It can't know default values of properties, and most of convertion logic done by Kestra Server. If you see diff that **is always present** (even just after apply), your flow on terraform must have a minor difference return from the server. In this case, **copy the source from Kestra UI** in your terraform files to avoid these difference. diff --git a/docs/resources/flow.md b/docs/resources/flow.md index 8c458f2..1d1ebf1 100644 --- a/docs/resources/flow.md +++ b/docs/resources/flow.md @@ -51,7 +51,7 @@ EOT ### Optional -- `keep_original_source` (Boolean) Use the content as source code, keeping comment and indentation. Defaults to `false`. +- `keep_original_source` (Boolean) Use the content as source code, keeping comment and indentation. Defaults to `true`. ### Read-Only