From 4bae45d2c74c3c9be4d6de807d199ca16bba18bf Mon Sep 17 00:00:00 2001 From: Mayur Deshmukh Date: Tue, 21 Jan 2025 15:08:14 +0530 Subject: [PATCH] chore(catalog): refactor backstage catalog files --- catalog-info.yaml | 31 +++++++++++++++++++ catalog-info.yml | 31 ------------------- .../resources/{CouchDB.yml => CouchDB.yaml} | 0 .../{NativeMongoDB.yml => NativeMongoDB.yaml} | 0 ...ativeMongoDB.yml => NonNativeMongoDB.yaml} | 0 .../{OnePlatform.yml => OnePlatform.yaml} | 11 ++++--- catalog/systems/{mkdocs.yml => mkdocs.yaml} | 0 .../{catalog-info.yml => catalog-info.yaml} | 5 +-- .../{catalog-info.yml => catalog-info.yaml} | 3 +- .../{catalog-info.yml => catalog-info.yaml} | 3 +- .../{catalog-info.yml => catalog-info.yaml} | 3 +- .../{catalog-info.yml => catalog-info.yaml} | 6 ++-- .../{catalog-info.yml => catalog-info.yaml} | 5 +-- .../{catalog-info.yml => catalog-info.yaml} | 5 +-- .../{catalog-info.yml => catalog-info.yaml} | 5 +-- .../{catalog-info.yml => catalog-info.yaml} | 5 +-- .../{catalog-info.yml => catalog-info.yaml} | 3 +- .../{catalog-info.yml => catalog-info.yaml} | 3 +- .../{catalog-info.yml => catalog-info.yaml} | 3 +- .../{catalog-info.yml => catalog-info.yaml} | 3 +- .../{catalog-info.yml => catalog-info.yaml} | 3 +- .../{catalog-info.yml => catalog-info.yaml} | 5 +-- .../{catalog-info.yml => catalog-info.yaml} | 5 +-- .../{catalog-info.yml => catalog-info.yaml} | 5 +-- 24 files changed, 81 insertions(+), 62 deletions(-) create mode 100644 catalog-info.yaml delete mode 100644 catalog-info.yml rename catalog/resources/{CouchDB.yml => CouchDB.yaml} (100%) rename catalog/resources/{NativeMongoDB.yml => NativeMongoDB.yaml} (100%) rename catalog/resources/{NonNativeMongoDB.yml => NonNativeMongoDB.yaml} (100%) rename catalog/systems/{OnePlatform.yml => OnePlatform.yaml} (79%) rename catalog/systems/{mkdocs.yml => mkdocs.yaml} (100%) rename packages/analytics-service/{catalog-info.yml => catalog-info.yaml} (90%) rename packages/api-catalog-service/{catalog-info.yml => catalog-info.yaml} (92%) rename packages/api-catalog-spa/{catalog-info.yml => catalog-info.yaml} (93%) rename packages/api-gateway-service/{catalog-info.yml => catalog-info.yaml} (94%) rename packages/apps-service/{catalog-info.yml => catalog-info.yaml} (84%) rename packages/component-catalog-spa/{catalog-info.yml => catalog-info.yaml} (90%) rename packages/developer-console-spa/{catalog-info.yml => catalog-info.yaml} (90%) rename packages/feedback-service/{catalog-info.yml => catalog-info.yaml} (89%) rename packages/feedback-spa/{catalog-info.yml => catalog-info.yaml} (91%) rename packages/home-spa/{catalog-info.yml => catalog-info.yaml} (92%) rename packages/lighthouse-service/{catalog-info.yml => catalog-info.yaml} (93%) rename packages/lighthouse-spa/{catalog-info.yml => catalog-info.yaml} (93%) rename packages/opc-base/{catalog-info.yml => catalog-info.yaml} (90%) rename packages/reverse-proxy-service/{catalog-info.yml => catalog-info.yaml} (90%) rename packages/search-service/{catalog-info.yml => catalog-info.yaml} (88%) rename packages/search-spa/{catalog-info.yml => catalog-info.yaml} (90%) rename packages/user-group-service/{catalog-info.yml => catalog-info.yaml} (89%) diff --git a/catalog-info.yaml b/catalog-info.yaml new file mode 100644 index 000000000..74a5b7566 --- /dev/null +++ b/catalog-info.yaml @@ -0,0 +1,31 @@ +apiVersion: backstage.io/v1alpha1 +kind: Location +metadata: + name: one-platform-root-config + title: One Platform Root Configuration + namespace: devex + description: A root collection of all One Platform configurations for Backstage. +spec: + owner: group:redhat/one-platform-devs + targets: + - ./catalog/resources/NativeMongoDB.yaml + - ./catalog/resources/NonNativeMongoDB.yaml + - ./catalog/systems/OnePlatform.yaml + - ./packages/analytics-service/catalog-info.yaml + - ./packages/api-catalog-service/catalog-info.yaml + - ./packages/api-catalog-spa/catalog-info.yaml + - ./packages/api-gateway-service/catalog-info.yaml + - ./packages/apps-service/catalog-info.yaml + - ./packages/component-catalog-spa/catalog-info.yaml + - ./packages/developer-console-spa/catalog-info.yaml + - ./packages/doc-spa/catalog-info.yaml + - ./packages/feedback-service/catalog-info.yaml + - ./packages/feedback-spa/catalog-info.yaml + - ./packages/home-spa/catalog-info.yaml + - ./packages/lighthouse-service/catalog-info.yaml + - ./packages/lighthouse-spa/catalog-info.yaml + - ./packages/opc-base/catalog-info.yaml + - ./packages/reverse-proxy-service/catalog-info.yaml + - ./packages/search-service/catalog-info.yaml + - ./packages/search-spa/catalog-info.yaml + - ./packages/user-group-service/catalog-info.yaml diff --git a/catalog-info.yml b/catalog-info.yml deleted file mode 100644 index 524ad44c6..000000000 --- a/catalog-info.yml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: backstage.io/v1alpha1 -kind: Location -metadata: - name: one-platform-root-config - title: One Platform Root Configuration - namespace: devex - description: A root collection of all One Platform configurations for Backstage. -spec: - owner: user:redhat/roommen - targets: - - ./catalog/resources/NativeMongoDB.yml - - ./catalog/resources/NonNativeMongoDB.yml - - ./catalog/systems/OnePlatform.yml - - ./packages/analytics-service/catalog-info.yml - - ./packages/api-catalog-service/catalog-info.yml - - ./packages/api-catalog-spa/catalog-info.yml - - ./packages/api-gateway-service/catalog-info.yml - - ./packages/apps-service/catalog-info.yml - - ./packages/component-catalog-spa/catalog-info.yml - - ./packages/developer-console-spa/catalog-info.yml - - ./packages/doc-spa/catalog-info.yml - - ./packages/feedback-service/catalog-info.yml - - ./packages/feedback-spa/catalog-info.yml - - ./packages/home-spa/catalog-info.yml - - ./packages/lighthouse-service/catalog-info.yml - - ./packages/lighthouse-spa/catalog-info.yml - - ./packages/opc-base/catalog-info.yml - - ./packages/reverse-proxy-service/catalog-info.yml - - ./packages/search-service/catalog-info.yml - - ./packages/search-spa/catalog-info.yml - - ./packages/user-group-service/catalog-info.yml diff --git a/catalog/resources/CouchDB.yml b/catalog/resources/CouchDB.yaml similarity index 100% rename from catalog/resources/CouchDB.yml rename to catalog/resources/CouchDB.yaml diff --git a/catalog/resources/NativeMongoDB.yml b/catalog/resources/NativeMongoDB.yaml similarity index 100% rename from catalog/resources/NativeMongoDB.yml rename to catalog/resources/NativeMongoDB.yaml diff --git a/catalog/resources/NonNativeMongoDB.yml b/catalog/resources/NonNativeMongoDB.yaml similarity index 100% rename from catalog/resources/NonNativeMongoDB.yml rename to catalog/resources/NonNativeMongoDB.yaml diff --git a/catalog/systems/OnePlatform.yml b/catalog/systems/OnePlatform.yaml similarity index 79% rename from catalog/systems/OnePlatform.yml rename to catalog/systems/OnePlatform.yaml index da22730bf..396eab48b 100644 --- a/catalog/systems/OnePlatform.yml +++ b/catalog/systems/OnePlatform.yaml @@ -9,6 +9,9 @@ metadata: annotations: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. + servicenow.com/appcode: ONEP-001 + jira/project-key: APD + jira/component: 'One-Platform' tags: - digital-experience - javascript @@ -17,8 +20,8 @@ metadata: - developer-experience links: - url: https://redhat-internal.slack.com/archives/C04FC8AUM3M - title: Slack - icon: chat + title: '#forum-one-platform' + icon: slack_contact - url: https://one.redhat.com title: Production - url: https://stage.one.redhat.com @@ -26,5 +29,5 @@ metadata: - url: https://qa.one.redhat.com title: QA spec: - owner: user:redhat/npatil - domain: dx/platform-engineering + owner: group:redhat/one-platform-devs + domain: uxe/platform-engineering diff --git a/catalog/systems/mkdocs.yml b/catalog/systems/mkdocs.yaml similarity index 100% rename from catalog/systems/mkdocs.yml rename to catalog/systems/mkdocs.yaml diff --git a/packages/analytics-service/catalog-info.yml b/packages/analytics-service/catalog-info.yaml similarity index 90% rename from packages/analytics-service/catalog-info.yml rename to packages/analytics-service/catalog-info.yaml index cece4a131..a48190575 100644 --- a/packages/analytics-service/catalog-info.yml +++ b/packages/analytics-service/catalog-info.yaml @@ -10,7 +10,8 @@ metadata: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. servicenow.com/appcode: ONEP-006 - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA tags: - microservice @@ -20,7 +21,7 @@ metadata: - nodejs spec: type: service - lifecycle: experimental + lifecycle: decommissioned owner: group:redhat/one-platform-devs system: devex/one-platform dependsOn: diff --git a/packages/api-catalog-service/catalog-info.yml b/packages/api-catalog-service/catalog-info.yaml similarity index 92% rename from packages/api-catalog-service/catalog-info.yml rename to packages/api-catalog-service/catalog-info.yaml index e7b851214..c37af3ce0 100644 --- a/packages/api-catalog-service/catalog-info.yml +++ b/packages/api-catalog-service/catalog-info.yaml @@ -10,7 +10,8 @@ metadata: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. servicenow.com/appcode: ONEP-007 - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA tags: - microservice diff --git a/packages/api-catalog-spa/catalog-info.yml b/packages/api-catalog-spa/catalog-info.yaml similarity index 93% rename from packages/api-catalog-spa/catalog-info.yml rename to packages/api-catalog-spa/catalog-info.yaml index ac24e332d..32c8d34f5 100644 --- a/packages/api-catalog-spa/catalog-info.yml +++ b/packages/api-catalog-spa/catalog-info.yaml @@ -12,7 +12,8 @@ metadata: servicenow.com/appcode: ONEP-007 spaship.io/property-id: 'one-platform' spaship.io/app-id: 'op-api-catalog' - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA links: - url: https://one.redhat.com/developers/api-catalog diff --git a/packages/api-gateway-service/catalog-info.yml b/packages/api-gateway-service/catalog-info.yaml similarity index 94% rename from packages/api-gateway-service/catalog-info.yml rename to packages/api-gateway-service/catalog-info.yaml index f065821ce..0b7349280 100644 --- a/packages/api-gateway-service/catalog-info.yml +++ b/packages/api-gateway-service/catalog-info.yaml @@ -10,7 +10,8 @@ metadata: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. servicenow.com/appcode: ONEP-001 - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA tags: - api-gateway diff --git a/packages/apps-service/catalog-info.yml b/packages/apps-service/catalog-info.yaml similarity index 84% rename from packages/apps-service/catalog-info.yml rename to packages/apps-service/catalog-info.yaml index 341588da5..e738f89e6 100644 --- a/packages/apps-service/catalog-info.yml +++ b/packages/apps-service/catalog-info.yaml @@ -10,9 +10,9 @@ metadata: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. servicenow.com/appcode: ONEP-001 - jira/project-key: ONEPLAT + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA - feedback/email-to: one-platform-devs+feedback-plugin-dev@redhat.com tags: - microservice - apps-service @@ -21,7 +21,7 @@ metadata: - nodejs spec: type: service - lifecycle: production + lifecycle: deprecated owner: group:redhat/one-platform-devs system: devex/one-platform dependsOn: diff --git a/packages/component-catalog-spa/catalog-info.yml b/packages/component-catalog-spa/catalog-info.yaml similarity index 90% rename from packages/component-catalog-spa/catalog-info.yml rename to packages/component-catalog-spa/catalog-info.yaml index 6dae943a6..ab4009e67 100644 --- a/packages/component-catalog-spa/catalog-info.yml +++ b/packages/component-catalog-spa/catalog-info.yaml @@ -13,7 +13,8 @@ metadata: servicenow.com/appcode: ONEP-001 spaship.io/property-id: 'one-platform' spaship.io/app-id: 'components' - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA links: - url: https://one.redhat.com/components @@ -26,6 +27,6 @@ metadata: - react spec: type: website - lifecycle: production + lifecycle: deprecated owner: group:redhat/one-platform-devs system: devex/one-platform diff --git a/packages/developer-console-spa/catalog-info.yml b/packages/developer-console-spa/catalog-info.yaml similarity index 90% rename from packages/developer-console-spa/catalog-info.yml rename to packages/developer-console-spa/catalog-info.yaml index 62bae5b09..c87f5a9d8 100644 --- a/packages/developer-console-spa/catalog-info.yml +++ b/packages/developer-console-spa/catalog-info.yaml @@ -13,7 +13,8 @@ metadata: spaship.io/property-id: 'one-platform' spaship.io/app-id: 'developer-console' matomo.io/site-id: '4' - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA links: - url: https://one.redhat.com/console @@ -26,7 +27,7 @@ metadata: - react spec: type: website - lifecycle: production + lifecycle: deprecated owner: group:redhat/one-platform-devs system: devex/one-platform dependsOn: diff --git a/packages/feedback-service/catalog-info.yml b/packages/feedback-service/catalog-info.yaml similarity index 89% rename from packages/feedback-service/catalog-info.yml rename to packages/feedback-service/catalog-info.yaml index 06629db9e..8ef1b1637 100644 --- a/packages/feedback-service/catalog-info.yml +++ b/packages/feedback-service/catalog-info.yaml @@ -10,7 +10,8 @@ metadata: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. servicenow.com/appcode: ONEP-004 - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA tags: - microservice @@ -20,7 +21,7 @@ metadata: - nodejs spec: type: service - lifecycle: production + lifecycle: deprecated owner: group:redhat/one-platform-devs system: devex/one-platform dependsOn: diff --git a/packages/feedback-spa/catalog-info.yml b/packages/feedback-spa/catalog-info.yaml similarity index 91% rename from packages/feedback-spa/catalog-info.yml rename to packages/feedback-spa/catalog-info.yaml index 4e1513748..710f47b62 100644 --- a/packages/feedback-spa/catalog-info.yml +++ b/packages/feedback-spa/catalog-info.yaml @@ -13,7 +13,8 @@ metadata: spaship.io/property-id: 'one-platform' spaship.io/app-id: 'developer-console' matomo.io/site-id: '3' - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA links: - url: https://one.redhat.com/feedback @@ -26,7 +27,7 @@ metadata: - react spec: type: website - lifecycle: production + lifecycle: deprecated owner: group:redhat/one-platform-devs system: devex/one-platform dependsOn: diff --git a/packages/home-spa/catalog-info.yml b/packages/home-spa/catalog-info.yaml similarity index 92% rename from packages/home-spa/catalog-info.yml rename to packages/home-spa/catalog-info.yaml index 6366fef23..aea442b22 100644 --- a/packages/home-spa/catalog-info.yml +++ b/packages/home-spa/catalog-info.yaml @@ -13,7 +13,8 @@ metadata: spaship.io/property-id: 'one-platform' spaship.io/app-id: 'home-spa' matomo.io/site-id: '2' - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA links: - url: https://one.redhat.com diff --git a/packages/lighthouse-service/catalog-info.yml b/packages/lighthouse-service/catalog-info.yaml similarity index 93% rename from packages/lighthouse-service/catalog-info.yml rename to packages/lighthouse-service/catalog-info.yaml index 9cc97e158..bf353d0f4 100644 --- a/packages/lighthouse-service/catalog-info.yml +++ b/packages/lighthouse-service/catalog-info.yaml @@ -10,7 +10,8 @@ metadata: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. servicenow.com/appcode: ONEP-008 - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA tags: - microservice diff --git a/packages/lighthouse-spa/catalog-info.yml b/packages/lighthouse-spa/catalog-info.yaml similarity index 93% rename from packages/lighthouse-spa/catalog-info.yml rename to packages/lighthouse-spa/catalog-info.yaml index b5f2c092d..9ff678957 100644 --- a/packages/lighthouse-spa/catalog-info.yml +++ b/packages/lighthouse-spa/catalog-info.yaml @@ -13,7 +13,8 @@ metadata: spaship.io/property-id: 'one-platform' spaship.io/app-id: 'lighthouse-spa' matomo.io/site-id: '5' - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA links: - url: https://one.redhat.com/lighthouse diff --git a/packages/opc-base/catalog-info.yml b/packages/opc-base/catalog-info.yaml similarity index 90% rename from packages/opc-base/catalog-info.yml rename to packages/opc-base/catalog-info.yaml index 7207dda78..ab28039a9 100644 --- a/packages/opc-base/catalog-info.yml +++ b/packages/opc-base/catalog-info.yaml @@ -9,7 +9,8 @@ metadata: annotations: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA tags: - library diff --git a/packages/reverse-proxy-service/catalog-info.yml b/packages/reverse-proxy-service/catalog-info.yaml similarity index 90% rename from packages/reverse-proxy-service/catalog-info.yml rename to packages/reverse-proxy-service/catalog-info.yaml index a67e7a1d5..ee31a0f32 100644 --- a/packages/reverse-proxy-service/catalog-info.yml +++ b/packages/reverse-proxy-service/catalog-info.yaml @@ -10,7 +10,8 @@ metadata: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. servicenow.com/appcode: ONEP-001 - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA tags: - reverse-proxy diff --git a/packages/search-service/catalog-info.yml b/packages/search-service/catalog-info.yaml similarity index 88% rename from packages/search-service/catalog-info.yml rename to packages/search-service/catalog-info.yaml index dc0dfb27a..ee12ed8c9 100644 --- a/packages/search-service/catalog-info.yml +++ b/packages/search-service/catalog-info.yaml @@ -10,7 +10,8 @@ metadata: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. servicenow.com/appcode: ONEP-001 - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA tags: - microservice @@ -20,7 +21,7 @@ metadata: - nodejs spec: type: service - lifecycle: production + lifecycle: deprecated owner: group:redhat/one-platform-devs system: devex/one-platform dependsOn: diff --git a/packages/search-spa/catalog-info.yml b/packages/search-spa/catalog-info.yaml similarity index 90% rename from packages/search-spa/catalog-info.yml rename to packages/search-spa/catalog-info.yaml index 119cf26d0..21fbf61d8 100644 --- a/packages/search-spa/catalog-info.yml +++ b/packages/search-spa/catalog-info.yaml @@ -13,7 +13,8 @@ metadata: spaship.io/property-id: 'one-platform' spaship.io/app-id: 'search' matomo.io/site-id: '6' - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA links: - url: https://one.redhat.com/search @@ -26,7 +27,7 @@ metadata: - angular spec: type: website - lifecycle: production + lifecycle: deprecated owner: group:redhat/one-platform-devs system: devex/one-platform dependsOn: diff --git a/packages/user-group-service/catalog-info.yml b/packages/user-group-service/catalog-info.yaml similarity index 89% rename from packages/user-group-service/catalog-info.yml rename to packages/user-group-service/catalog-info.yaml index dd3f3aa8b..48f043720 100644 --- a/packages/user-group-service/catalog-info.yml +++ b/packages/user-group-service/catalog-info.yaml @@ -10,7 +10,8 @@ metadata: github.com/project-slug: '1-Platform/one-platform' backstage.io/techdocs-ref: dir:. servicenow.com/appcode: ONEP-001 - jira/project-key: DEE + jira/project-key: APD + jira/component: 'One-Platform' feedback/type: JIRA tags: - microservice @@ -20,7 +21,7 @@ metadata: - nodejs spec: type: service - lifecycle: production + lifecycle: deprecated owner: group:redhat/one-platform-devs system: devex/one-platform dependsOn: