add link to k8s docs on Missing Annotation page

This commit is contained in:
Fidel Coria
2021-02-23 09:12:50 -06:00
parent ba21797ca5
commit 7ad5ad8842
+17 -1
View File
@@ -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 <MissingAnnotationEmptyState annotation={KUBERNETES_ANNOTATION} />;
return (
<>
<MissingAnnotationEmptyState annotation={KUBERNETES_ANNOTATION} />
<h1>
Or use a label selector query, which takes precedence over the previous
annotation.
</h1>
<Button
variant="contained"
color="primary"
href="https://backstage.io/docs/features/kubernetes/configuration#surfacing-your-kubernetes-components-as-part-of-an-entity"
>
Read Kubernetes Plugin Docs
</Button>
</>
);
};