Files
backstage/plugins/badges-backend

Badges Backend

Backend plugin for serving badges. Default implementation uses badge-maker for creating the badges, in svg.

Setup

Define which badges to offer in the backend api by declaring them in the app-config, under a badges key. Example:

badges:
  docs:
    kind: 'entity'
    target: '_{entity_url}/docs'
    label: 'Documentation'
    message: '_{entity.metadata.name}'
    color: 'navyblue'

  lifecycle:
    kind: 'entity'
    description: 'Entity lifecycle badge'
    target: '_{entity_url}'
    label: 'Lifecycle'
    message: '_{entity.spec.lifecycle}'