unknown-target
A Deployment, or a Saved Deployment View’s targets, names no Deployment Target.
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:48 error unknown-target Unknown Deployment Target "eks-prd" in Project "shop"; did you mean "eks-prod"?A Deployment says where a Service runs. If its target names no Deployment Target, the Deployment has nowhere to be placed in a Deployment View; a Saved Deployment View that names one narrows to a Target that doesn’t exist.
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: prod, target: eks-prd }Use the id of a Target declared in the Project, or project:id for one declared in another Project.
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-environment: A Deployment, or a Saved Deployment View, names no Environment.target-outside-environment: A Saved Deployment View’stargetsentry has no Deployment in the View’senvironment, on it or on any Target inside it.wrong-kind: An id resolves to a kind the field doesn’t accept, such as a Deployment’sservicenaming a Component or System, or a Relationship’svianaming something other than a Service.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.