diff --git a/.changeset/tender-days-tickle.md b/.changeset/tender-days-tickle.md new file mode 100644 index 0000000000..c85e6f30d9 --- /dev/null +++ b/.changeset/tender-days-tickle.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-kubernetes-backend': patch +--- + +Add kubernetes namespace annotation `backstage.io/kubernetes-namespace` to force namespaced lookups for Kubernetes resources diff --git a/docs/features/kubernetes/configuration.md b/docs/features/kubernetes/configuration.md index dd7e666be4..dc4b2823e2 100644 --- a/docs/features/kubernetes/configuration.md +++ b/docs/features/kubernetes/configuration.md @@ -355,6 +355,16 @@ annotations: 'backstage.io/kubernetes-id': dice-roller ``` +#### Adding the namespace annotation + +Additionally entities can have the `backstage.io/kubernetes-namespace` annotation to use namespaced +lookups instead of the default cluster wide lookups. + +```yaml +annotations: + 'backstage.io/kubernetes-namespace': dice-space +``` + #### Labeling Kubernetes components In order for Kubernetes components to show up in the software catalog as a part