Skip to content

CICD-412 · Backstage software templates ​

Encyclopedia · Platform engineering and internal developer platforms · All snippets

Previous · CICD-411 · Next · CICD-413

1. Where it fits ​

  • Placement backstage/template.yaml fragment.
  • Prerequisites platform sandbox, scoped identities and reviewed service catalog or provisioning policy.
  • Platforms kubernetes, local-lab.

2. Copy the snippet ​

yaml
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata: {name: python-service, title: Python service, description: Create an approved Python service skeleton}
spec:
  owner: group:default/platform
  type: service
  parameters:
    - title: Service identity
      required: [name]
      properties:
        name: {type: string, pattern: "^[a-z][a-z0-9-]+$"}
  steps:
    - id: fetch
      name: Render skeleton
      action: fetch:template
      input:
        url: ./skeleton
        values:
          name: ${{ parameters.name }}

3. How it works ​

API version decides which schema and controller can accept the resource. Check the corresponding kind and availability on the target cluster.

4. Verify the result ​

Add publish and register steps with an allowlisted destination. Validate the scaffold in a Backstage sandbox.

Validation version-dependent (YAML parse). Status definitions.