From afc0fc7fbd8d18ab8c05ccc55debb1d84fb42a1c Mon Sep 17 00:00:00 2001 From: Lisa Karlin Curtis Date: Thu, 27 Jun 2024 10:54:05 +0100 Subject: [PATCH] Add categories to our examples --- docs/backstage/pipelines/api-type.jsonnet | 1 + docs/backstage/pipelines/component-type.jsonnet | 1 + docs/backstage/pipelines/entries.jsonnet | 4 ++++ docs/backstage/pipelines/lifecycle.jsonnet | 1 + docs/outputs.md | 1 + docs/simple/importer.jsonnet | 3 +++ 6 files changed, 11 insertions(+) diff --git a/docs/backstage/pipelines/api-type.jsonnet b/docs/backstage/pipelines/api-type.jsonnet index df72235..702f301 100644 --- a/docs/backstage/pipelines/api-type.jsonnet +++ b/docs/backstage/pipelines/api-type.jsonnet @@ -42,6 +42,7 @@ name: '$.name', external_id: '$.external_id', }, + categories: ['service'], attributes: [ { id: 'description', diff --git a/docs/backstage/pipelines/component-type.jsonnet b/docs/backstage/pipelines/component-type.jsonnet index 7ff00ce..b78a2f7 100644 --- a/docs/backstage/pipelines/component-type.jsonnet +++ b/docs/backstage/pipelines/component-type.jsonnet @@ -32,6 +32,7 @@ name: 'Backstage Component Type', description: 'Type of a component.', type_name: 'Custom["BackstageComponentType"]', + categories: ['service'], source: { name: '$.name', external_id: '$.external_id', diff --git a/docs/backstage/pipelines/entries.jsonnet b/docs/backstage/pipelines/entries.jsonnet index 6b5ab88..8605939 100644 --- a/docs/backstage/pipelines/entries.jsonnet +++ b/docs/backstage/pipelines/entries.jsonnet @@ -192,6 +192,7 @@ name: 'Backstage Domain', description: 'Groups of systems that share terminology or purpose.', type_name: 'Custom["BackstageDomain"]', + categories: ['service'], source: { filter: '$.apiVersion == "backstage.io/v1alpha1" && $.kind == "Domain"', name: '$.metadata.name', @@ -222,6 +223,7 @@ name: 'Backstage Group', description: 'Groups synced from Backstage.', type_name: 'Custom["BackstageGroup"]', + categories: ['team'], source: { filter: '$.apiVersion == "backstage.io/v1alpha1" && $.kind == "Group"', name: '$.metadata.name', @@ -256,6 +258,7 @@ name: 'Backstage User', description: 'Users synced from Backstage.', type_name: 'Custom["BackstageUser"]', + categories: ['user'], source: { filter: '$.apiVersion == "backstage.io/v1alpha1" && $.kind == "User"', name: '$.metadata.name', @@ -288,6 +291,7 @@ name: 'Backstage System', description: 'Collections of resources.', type_name: 'Custom["BackstageSystem"]', + categories: ['product-features'], source: { filter: '$.apiVersion == "backstage.io/v1alpha1" && $.kind == "System"', name: '$.metadata.name', diff --git a/docs/backstage/pipelines/lifecycle.jsonnet b/docs/backstage/pipelines/lifecycle.jsonnet index 189ae40..545029f 100644 --- a/docs/backstage/pipelines/lifecycle.jsonnet +++ b/docs/backstage/pipelines/lifecycle.jsonnet @@ -32,6 +32,7 @@ name: 'Backstage Lifecycle', description: 'Component lifecycle stage.', type_name: 'Custom["BackstageLifecycle"]', + categories: ['service'], source: { name: '$.name', external_id: '$.external_id', diff --git a/docs/outputs.md b/docs/outputs.md index a1d7ddf..dd2d37a 100644 --- a/docs/outputs.md +++ b/docs/outputs.md @@ -38,6 +38,7 @@ by example. Take this pipeline: name: 'name', external_id: 'external_id', }, + categories: ['service'], attributes: [ { id: 'description', diff --git a/docs/simple/importer.jsonnet b/docs/simple/importer.jsonnet index c4dcbfd..6310286 100644 --- a/docs/simple/importer.jsonnet +++ b/docs/simple/importer.jsonnet @@ -19,6 +19,7 @@ local catalog = import 'catalog.jsonnet'; name: 'Team', description: 'Teams in Product Development.', type_name: 'Custom["Team"]', + categories: ['team'], source: { name: '$.name', external_id: '$.external_id', @@ -104,6 +105,7 @@ local catalog = import 'catalog.jsonnet'; name: 'Feature', description: 'Product features that would be recognisable to customers.', type_name: 'Custom["Feature"]', + categories: ['product-features'], source: { name: '$.name', external_id: '$.external_id', @@ -140,6 +142,7 @@ local catalog = import 'catalog.jsonnet'; name: 'Integration', description: 'Product integrations with third-party services, powering features.', type_name: 'Custom["Integration"]', + categories: ['product-features'], source: { name: '$.name', external_id: '$.external_id',