Kubernetes: Entity name is used instead of value of backstage.io/kubernetes-id
annotation
#5051
Labels
area:kubernetes
Related to the Kubernetes Project Area - not deploying Backstage with k8s.
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Help/Contributions wanted from community members
Expected Behavior
The value of the entity annotation
backstage.io/kubernetes-id
should be used to lookup Kubernetes resources.Current Behavior
The value of the entity's name is used to to lookup the Kubernetes resources.
Possible Solution
https://github.com/backstage/backstage/blob/master/plugins/kubernetes-backend/src/service/KubernetesFanOutHandler.ts#L61 should be removed and replaced by looking up the annotation value in the entity like https://github.com/backstage/backstage/blob/master/plugins/kubernetes-backend/src/service/KubernetesFanOutHandler.ts#L88 for
backstage.io/kubernetes-label-selector
The text was updated successfully, but these errors were encountered: