Skip to content

wrong-kind

Severity: error

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.

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 }