env label is useful for performing bulk operations in specific environments or for filtering Deployments according to their stage. Recommended values for this key are: prod / staging / qa / admin / testing.
Labels' keys and values are case-sensitive!
Targeted resources by this rule (types of
Enabled by default? False
Policy as code identifier: DEPLOYMENT_MISSING_LABEL_ENV_VALUE
This rule will fail
env key is missing from the
Rule output in the CLI
$ datree test *.yaml
>> File: failExample.yaml
❌ Ensure Deployment has a configured `env` label [1 occurrence]
💡 Missing label object `env` - add a proper environment description (e.g. `prod`, `testing`, etc.) to the Deployment config
How to fix this failure