diff --git a/plugins/catalog-backend/fixtures/example-components.yaml b/plugins/catalog-backend/fixtures/example-components.yaml new file mode 100644 index 0000000000..4580fa7179 --- /dev/null +++ b/plugins/catalog-backend/fixtures/example-components.yaml @@ -0,0 +1,60 @@ +--- +apiVersion: backstage.io/v1beta1 +kind: Component +metadata: + name: podcast-api + description: Podcast API +spec: + type: service + lifecycle: experimental + owner: tools@example.com +--- +apiVersion: backstage.io/v1beta1 +kind: Component +metadata: + name: artist-lookup + description: Artist Lookup +spec: + type: service + lifecycle: experimental + owner: tools@example.com +--- +apiVersion: backstage.io/v1beta1 +kind: Component +metadata: + name: searcher + description: Searcher +spec: + type: service + lifecycle: production + owner: tools@example.com +--- +apiVersion: backstage.io/v1beta1 +kind: Component +metadata: + name: playback-order + description: Playback Order +spec: + type: service + lifecycle: production + owner: tools@example.com +--- +apiVersion: backstage.io/v1beta1 +kind: Component +metadata: + name: shuffle-api + description: Shuffle API +spec: + type: service + lifecycle: production + owner: tools@example.com +--- +apiVersion: backstage.io/v1beta1 +kind: Component +metadata: + name: queue-proxy + description: Queue Proxy +spec: + type: website + lifecycle: production + owner: tools@example.com diff --git a/plugins/catalog-backend/fixtures/one_component.yaml b/plugins/catalog-backend/fixtures/one_component.yaml deleted file mode 100644 index 421f66f7a8..0000000000 --- a/plugins/catalog-backend/fixtures/one_component.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: backstage.io/v1beta1 -kind: Component -metadata: - name: component3 -spec: - type: service diff --git a/plugins/catalog-backend/fixtures/two_components.yaml b/plugins/catalog-backend/fixtures/two_components.yaml deleted file mode 100644 index 2fcacb8492..0000000000 --- a/plugins/catalog-backend/fixtures/two_components.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -apiVersion: backstage.io/v1beta1 -kind: Component -metadata: - name: playlist-proxy -spec: - type: service ---- -apiVersion: backstage.io/v1beta1 -kind: Component -metadata: - name: artist-web -spec: - type: website diff --git a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx index da2c454ffb..f62749ee17 100644 --- a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx @@ -45,8 +45,12 @@ const columns: TableColumn[] = [ ), }, { - title: 'Kind', - field: 'kind', + title: 'Owner', + field: 'spec.owner', + }, + { + title: 'Lifecycle', + field: 'spec.lifecycle', }, { title: 'Description',