Skip to content

definition-outside-workspace

teams or environments declared outside workspace.yaml.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:1:1 error definition-outside-workspace "teams" may only be defined in workspace.yaml

Teams and Environments are defined once per Workspace, so prod means the same thing in every Project. A second definition inside a Project could disagree with the first.

shop/services.yaml:

teams:
web-team:
name: Web

workspace.yaml:

teams:
core:
name: Core
environments:
prod:
name: Production

Move the definitions into workspace.yaml at the Workspace root.

workspace.yaml:

teams:
core:
name: Core
web-team:
name: Web
environments:
prod:
name: Production

shop/services.yaml: removed.

  • unknown-team: An owner, or a Saved View’s {team} selector or Team Lens, names no Team.
  • unknown-environment: A Deployment, or a Saved Deployment View, names no Environment.

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