unknown-environment
A Deployment, or a Saved Deployment View, names no Environment.
Severity: error · Since: v1.0.0
What check reports
Section titled “What check reports”For the failing example below, archidocs check prints:
shop/services.yaml:14:34 error unknown-environment Unknown Environment "production"; did you mean "prod"?Environments are defined once, in workspace.yaml, so prod means the same thing in every Project. A Deployment that says production when the Environment is prod belongs to no Environment, and nobody asking where the Service runs in prod will find it.
Failing example
Section titled “Failing example”shop/services.yaml:
services: web: name: Web checkout: name: Checkout components: cart: name: Carttargets: eks-prod: name: EKS prod kind: clusterdeployments: - { service: web, environment: production, target: eks-prod }Use the id of an Environment defined in workspace.yaml, or define the Environment there.
shop/services.yaml:
services: web: name: Web checkout: name: Checkout components: cart: name: Carttargets: eks-prod: name: EKS prod kind: clusterdeployments: - { service: web, environment: prod, target: eks-prod }Related rules
Section titled “Related rules”unknown-target: A Deployment, or a Saved Deployment View’stargets, names no Deployment Target.target-outside-environment: A Saved Deployment View’stargetsentry has no Deployment in the View’senvironment, on it or on any Target inside it.definition-outside-workspace:teamsorenvironmentsdeclared outsideworkspace.yaml.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.