From 7ad5ad88421ebc844e88070ed9722cee13b3101c Mon Sep 17 00:00:00 2001 From: Fidel Coria Date: Tue, 23 Feb 2021 09:12:50 -0600 Subject: [PATCH] add link to k8s docs on Missing Annotation page --- plugins/kubernetes/src/Router.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/plugins/kubernetes/src/Router.tsx b/plugins/kubernetes/src/Router.tsx index 5197e4811d..838bfef60a 100644 --- a/plugins/kubernetes/src/Router.tsx +++ b/plugins/kubernetes/src/Router.tsx @@ -21,6 +21,7 @@ import { Route, Routes } from 'react-router-dom'; import { rootCatalogKubernetesRouteRef } from './plugin'; import { KubernetesContent } from './components/KubernetesContent'; import { MissingAnnotationEmptyState } from '@backstage/core'; +import { Button } from '@material-ui/core'; const KUBERNETES_ANNOTATION = 'backstage.io/kubernetes-id'; const KUBERNETES_LABEL_SELECTOR_QUERY_ANNOTATION = @@ -54,5 +55,20 @@ export const Router = (_props: Props) => { ); } - return ; + return ( + <> + +

+ Or use a label selector query, which takes precedence over the previous + annotation. +

+ + + ); };