Skip to content

Resource

Represents infrastructure such as messaging brokers, caches, or databases.

The spec of a Resource entity has the following fields:

  • type - required - The type of resource (e.g., "database", "messaging-broker").
  • owner - required - An entity reference to the owner of the resource (e.g., group:my-team).
  • system - required - An entity reference to the system that the resource belongs to.
  • dependsOn - optional - A list of entity references to other components or resources that this component depends on. MUST include the kind specifier, e.g. resource:my-database.

Example:

apiVersion: swcat/v1
kind: Resource
metadata:
    name: my-resource
spec:
  type: database
  owner: my-team
  system: my-system