☑️ Ensure Deployment has a configured `env` label

Having an 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.

FYI

Labels' keys and values are case-sensitive!

Targeted resources by this rule (types of kind): Deployment

Enabled by default? False

Policy as code identifier: DEPLOYMENT_MISSING_LABEL_ENV_VALUE

This rule will fail

If the env key is missing from the labels section

YAML

Rule output in the CLI

Terminal

How to fix this failure

YAML

Read more