Hello, I'm looking for help with the following case:
The problem: digested Location doesn’t stitched to Component. Backstage log shows only warning regarding missed annotation “http://backstage.io/managed-by-location"
Context:
- I’m using
GithubOrgEntityProviderandGithubEntityProviderfo Catalog pluging only - Backstage version
1.15.0 - Catalog config is following:
catalog:
rules:
- allow: [Component, API, Group, User, Template, Location, Domain, System, Resource]
providers:
github:
simpleRepo:
organization: 'noname'
catalogPath: '/catalog-info.yaml'
filters:
repository: '^(software-catalog-test|software-catalog-monorepo-test)$'
monoRepo:
organization: 'noname'
catalogPath: '/packages/**/catalog-info.yaml'
filters:
repository: '^(software-catalog-test|software-catalog-monorepo-test)$'
- example catalog-info.yaml is following:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: test1
description: "Lorem ipsum"
annotations: [
{
"backstage.io/managed-by-location": "url:https:/github.com/noname/software-catalog-test/blob/main/catalog-info.yaml"
}
]
spec:
type: other
lifecycle: production
domain: unknown
system: unknown
owner: architecture
relations: []
- as a result I have following Location never stitched to Component
{
"metadata": {
"namespace": "default",
"annotations": {
"backstage.io/managed-by-location": "xx",
"backstage.io/managed-by-origin-location": "xxx",
"backstage.io/view-url": "xx",
"backstage.io/edit-url": "xx",
"backstage.io/source-location": "xx"
},
"name": "generated-xxx",
"uid": "xx",
"etag": "xx"
},
"apiVersion": "backstage.io/v1alpha1",
"kind": "Location",
"spec": {
"type": "url",
"target": "xx",
"presence": "optional"
},
"relations": [
]
}