From 2facfeb95688b90a1d7f6092a5e691668a80a27f Mon Sep 17 00:00:00 2001 From: Andrew Thauer Date: Tue, 9 Mar 2021 14:27:52 -0500 Subject: [PATCH] add domain to allowed codeowner kinds Signed-off-by: Andrew Thauer --- .changeset/bright-spiders-sniff.md | 2 +- .../src/ingestion/processors/CodeOwnersProcessor.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/bright-spiders-sniff.md b/.changeset/bright-spiders-sniff.md index 42f47d5408..ca472a2e6e 100644 --- a/.changeset/bright-spiders-sniff.md +++ b/.changeset/bright-spiders-sniff.md @@ -2,4 +2,4 @@ '@backstage/plugin-catalog-backend': patch --- -Allow CodeOwnersProcessor to set spec.owner for System and Resource entity kinds. +Allow CodeOwnersProcessor to set `spec.owner` for `System`, `Resource`, and `Domain` entity kinds. diff --git a/plugins/catalog-backend/src/ingestion/processors/CodeOwnersProcessor.ts b/plugins/catalog-backend/src/ingestion/processors/CodeOwnersProcessor.ts index 2f432f4a0f..bdea197426 100644 --- a/plugins/catalog-backend/src/ingestion/processors/CodeOwnersProcessor.ts +++ b/plugins/catalog-backend/src/ingestion/processors/CodeOwnersProcessor.ts @@ -29,7 +29,7 @@ import { filter, get, head, pipe, reverse } from 'lodash/fp'; import { Logger } from 'winston'; import { CatalogProcessor } from './types'; -const ALLOWED_KINDS = ['API', 'Component', 'Resource', 'System']; +const ALLOWED_KINDS = ['API', 'Component', 'Domain', 'Resource', 'System']; const ALLOWED_LOCATION_TYPES = [ 'url',