microscopic-river-74022
08/25/2023, 1:38 PMmicroscopic-river-74022
08/25/2023, 1:39 PMdisabled
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:
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:
----------------------