Skip to content

wrong-kind

An id resolves to a kind the field doesn’t accept, such as a Deployment’s service naming a Component or System, or a Relationship’s via naming something other than a Service.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:14:16 error wrong-kind A Deployment's `service` must name a Service, but "shop:cart" is a Component

Some fields take one kind only. Only a Service is deployed, because Systems and Components run as part of their Services, and only a Service can be the broker an async Relationship runs through.

shop/services.yaml:

services:
web:
name: Web
checkout:
name: Checkout
components:
cart:
name: Cart
targets:
eks-prod:
name: EKS prod
kind: cluster
deployments:
- { service: cart, environment: prod, target: eks-prod }

Point the field at an id of the kind it accepts: a Deployment’s service and a Relationship’s via each name a Service.

shop/services.yaml:

services:
web:
name: Web
checkout:
name: Checkout
components:
cart:
name: Cart
targets:
eks-prod:
name: EKS prod
kind: cluster
deployments:
- { service: web, environment: prod, target: eks-prod }
  • unknown-element: A reference names no Element: in to, via, in, a Deployment’s service, or a Saved View’s selectors, expand, collapse or Lens.
  • via-not-broker: via names a Service that isn’t type: broker.
  • unknown-target: A Deployment, or a Saved Deployment View’s targets, names no Deployment Target.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.