Enable and disable components
-
Component can be disabled or enabled for all or specific environment configurations.
spec:
components:
- name: backend
environmentConfig:
- environment: prod
enabled: falseIn the example above the component
backend
is disabled for the environmentprod
, but it remains enabled for other environments, if they exist. An equal configuration:spec:
components:
- name: backend
enabled: true
environmentConfig:
- environment: prod
enabled: false -
The component can be enabled for specific environment configurations.
spec:
components:
- name: backend
enabled: false
environmentConfig:
- environment: prod
enabled: trueIn the example above the component
backend
is disabled for all environments, but it is disabled for the environmentprod
. -
If a component is disabled and there are its environment configurations, where the option
enabled
is not specified, the component is disabled for such environments.spec:
components:
- name: backend
enabled: false
environmentConfig:
- environment: prodIn the example above the component
backend
is disabled for all environments, including the environmentprod
.