Files
backstage/.changeset/polite-knives-build.md
T
Deepankumar 52050ada6e SingleTenant ServiceLocatorMethod for Kubernetes cluster by entity annotation (#20954)
* Filter Kubernetes cluster by entity annotation

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>

* Documentation updated

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>

* SingleTenantLocator implemented

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>

* API reports updated

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>

* spelling corrected

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>

* document updated and fixed review comments

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>

---------

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>
2023-11-15 14:54:22 -05:00

629 B

@backstage/plugin-kubernetes-backend
@backstage/plugin-kubernetes-backend
minor

You can now select single kubernetes cluster that the entity is part-of from all your defined kubernetes clusters, by passing backstage.io/kubernetes-cluster annotation with the defined cluster name.

If you do not specify the annotation by default it fetches all defined kubernetes cluster.

To apply

catalog-info.yaml

annotations:
  'backstage.io/kubernetes-id': dice-roller
  'backstage.io/kubernetes-namespace': dice-space
+ 'backstage.io/kubernetes-cluster': dice-cluster
  'backstage.io/kubernetes-label-selector': 'app=my-app,component=front-end'