hey what causes this message: Warning: unknown fi...
# 🤖|ask-kapa
m
Please stand by @orange-analyst-19175 as I search the knowledge base. I normally take about 20 seconds or so. :wave:
---------------------- The
disabled
field is a configuration key used in Garden to disable a module. If you're seeing a warning about an "unknown field 'disabled'", it could be because the
disabled
field is being used in an incorrect context or it's not recognized where it's currently placed. In Garden, you can use the
disabled
field to disable actions or modules. For example, you can disable a module by setting
disabled: true
in the module's configuration. This can be useful when you only need certain modules for specific environments. When a module is disabled, any services, tasks, and tests contained in it will not be deployed or run. Here's an example of how to use the
disabled
field in a module configuration:
Copy code
yaml
kind: Module
type: terraform
name: my-module
disabled: ${environment.name == "prod"}
In this example, the
my-module
module will be disabled when the environment name is "prod". If you're still seeing the warning, make sure the
disabled
field is being used correctly and is supported in your current version of Garden. If you need more help, you can refer to the Garden documentation () or Garden's GitHub issues () for more information. ----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon: ----------------------
3 Views