target-outside-environment
A Saved Deployment View’s targets entry has no Deployment in the View’s environment, on it or on any Target inside it.
Severity: error · Since: v1.0.0
What check reports
Section titled “What check reports”For the failing example below, archidocs check prints:
shop/views.yaml:11:17 error target-outside-environment Deployment Target "shop:eks-staging" has no Deployment in Environment "prod"The same example also reports empty-view.
A Deployment View shows one Environment. A Deployment Target with no Deployment in that Environment, on it or on any Target inside it, has nothing to show there; it usually means the wrong Target or the wrong Environment.
Failing example
Section titled “Failing example”shop/views.yaml:
targets: eks-staging: name: EKS staging kind: clusterviews: structural: runtime: title: Runtime level: deployment environment: prod targets: [eks-staging]Remove the Target from targets, or point the View at the Environment that runs on it.
shop/views.yaml:
targets: eks-staging: name: EKS staging kind: clusterviews: structural: runtime: title: Runtime level: deployment environment: prod targets: [eks-prod]Related rules
Section titled “Related rules”unknown-target: A Deployment, or a Saved Deployment View’stargets, names no Deployment Target.unknown-environment: A Deployment, or a Saved Deployment View, names no Environment.empty-view: A Saved View resolves to no nodes.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.