@backstage/plugin-kubernetes 0.12.6-next.0 → 0.12.6-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/KubernetesContent.esm.js +64 -55
- package/dist/KubernetesContent.esm.js.map +1 -1
- package/dist/RequireKubernetesPermissions.esm.js +3 -3
- package/dist/RequireKubernetesPermissions.esm.js.map +1 -1
- package/dist/Router.esm.js +17 -13
- package/dist/Router.esm.js.map +1 -1
- package/dist/alpha/KubernetesContentPage.esm.js +2 -2
- package/dist/alpha/KubernetesContentPage.esm.js.map +1 -1
- package/dist/alpha/entityContents.esm.js +4 -3
- package/dist/alpha/entityContents.esm.js.map +1 -1
- package/dist/alpha/pages.esm.js +2 -2
- package/dist/alpha/pages.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.12.6-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a47fd39: Removes instances of default React imports, a necessary update for the upcoming React 19 migration.
|
|
8
|
+
|
|
9
|
+
<https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html>
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/frontend-plugin-api@0.10.1-next.1
|
|
13
|
+
- @backstage/core-compat-api@0.4.1-next.2
|
|
14
|
+
- @backstage/core-components@0.17.1-next.1
|
|
15
|
+
- @backstage/core-plugin-api@1.10.6-next.0
|
|
16
|
+
- @backstage/plugin-kubernetes-react@0.5.6-next.1
|
|
17
|
+
- @backstage/plugin-permission-react@0.4.33-next.0
|
|
18
|
+
- @backstage/plugin-catalog-react@1.17.0-next.2
|
|
19
|
+
- @backstage/catalog-model@1.7.3
|
|
20
|
+
- @backstage/plugin-kubernetes-common@0.9.4
|
|
21
|
+
|
|
22
|
+
## 0.12.6-next.1
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- b877e46: Added New Frontend System filter for the Kubernetes tab to use `isKubernetesAvailable` to control its visibility
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @backstage/core-components@0.17.1-next.0
|
|
29
|
+
- @backstage/frontend-plugin-api@0.10.1-next.0
|
|
30
|
+
- @backstage/plugin-catalog-react@1.16.1-next.1
|
|
31
|
+
- @backstage/plugin-kubernetes-react@0.5.6-next.0
|
|
32
|
+
- @backstage/core-compat-api@0.4.1-next.1
|
|
33
|
+
- @backstage/catalog-model@1.7.3
|
|
34
|
+
- @backstage/core-plugin-api@1.10.5
|
|
35
|
+
- @backstage/plugin-kubernetes-common@0.9.4
|
|
36
|
+
- @backstage/plugin-permission-react@0.4.32
|
|
37
|
+
|
|
3
38
|
## 0.12.6-next.0
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import Grid from '@material-ui/core/Grid';
|
|
3
3
|
import Typography from '@material-ui/core/Typography';
|
|
4
4
|
import { useKubernetesObjects, DetectedErrorsContext, ErrorPanel, ErrorReporting, Cluster } from '@backstage/plugin-kubernetes-react';
|
|
@@ -17,62 +17,71 @@ const KubernetesContent = ({
|
|
|
17
17
|
const clusters = kubernetesObjects?.items.map((item) => item.cluster) ?? [];
|
|
18
18
|
const clustersWithErrors = kubernetesObjects?.items.filter((r) => r.errors.length > 0) ?? [];
|
|
19
19
|
const detectedErrors = kubernetesObjects !== void 0 ? detectErrors(kubernetesObjects) : /* @__PURE__ */ new Map();
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ jsx(Page, { themeId: "tool", children: /* @__PURE__ */ jsx(Content, { children: /* @__PURE__ */ jsx(RequireKubernetesPermissions, { children: /* @__PURE__ */ jsxs(
|
|
21
21
|
DetectedErrorsContext.Provider,
|
|
22
22
|
{
|
|
23
|
-
value: [...detectedErrors.values()].flat()
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
23
|
+
value: [...detectedErrors.values()].flat(),
|
|
24
|
+
children: [
|
|
25
|
+
kubernetesObjects === void 0 && error === void 0 && /* @__PURE__ */ jsx(Progress, {}),
|
|
26
|
+
clustersWithErrors.length > 0 && /* @__PURE__ */ jsx(Grid, { container: true, spacing: 3, direction: "column", children: /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
27
|
+
ErrorPanel,
|
|
28
|
+
{
|
|
29
|
+
entityName: entity.metadata.name,
|
|
30
|
+
clustersWithErrors
|
|
31
|
+
}
|
|
32
|
+
) }) }),
|
|
33
|
+
error !== void 0 && /* @__PURE__ */ jsx(Grid, { container: true, spacing: 3, direction: "column", children: /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
34
|
+
ErrorPanel,
|
|
35
|
+
{
|
|
36
|
+
entityName: entity.metadata.name,
|
|
37
|
+
errorMessage: error
|
|
38
|
+
}
|
|
39
|
+
) }) }),
|
|
40
|
+
kubernetesObjects && /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 3, direction: "column", children: [
|
|
41
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
42
|
+
ErrorReporting,
|
|
43
|
+
{
|
|
44
|
+
detectedErrors,
|
|
45
|
+
clusters
|
|
46
|
+
}
|
|
47
|
+
) }),
|
|
48
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Typography, { variant: "h3", children: "Your Clusters" }) }),
|
|
49
|
+
/* @__PURE__ */ jsxs(Grid, { item: true, container: true, children: [
|
|
50
|
+
kubernetesObjects?.items.length <= 0 && /* @__PURE__ */ jsx(
|
|
51
|
+
Grid,
|
|
52
|
+
{
|
|
53
|
+
container: true,
|
|
54
|
+
justifyContent: "space-around",
|
|
55
|
+
direction: "row",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
spacing: 2,
|
|
58
|
+
children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 8, children: /* @__PURE__ */ jsx(
|
|
59
|
+
EmptyState,
|
|
60
|
+
{
|
|
61
|
+
missing: "data",
|
|
62
|
+
title: "No Kubernetes resources",
|
|
63
|
+
description: `No resources on any known clusters for ${entity.metadata.name}`
|
|
64
|
+
}
|
|
65
|
+
) })
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
kubernetesObjects?.items.length > 0 && kubernetesObjects?.items.map((item, i) => {
|
|
69
|
+
const podsWithErrors = new Set(
|
|
70
|
+
detectedErrors.get(item.cluster.name)?.filter((de) => de.sourceRef.kind === "Pod").map((de) => de.sourceRef.name)
|
|
71
|
+
);
|
|
72
|
+
return /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(
|
|
73
|
+
Cluster,
|
|
74
|
+
{
|
|
75
|
+
clusterObjects: item,
|
|
76
|
+
podsWithErrors
|
|
77
|
+
}
|
|
78
|
+
) }, i);
|
|
79
|
+
})
|
|
80
|
+
] })
|
|
81
|
+
] })
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
) }) }) });
|
|
76
85
|
};
|
|
77
86
|
|
|
78
87
|
export { KubernetesContent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KubernetesContent.esm.js","sources":["../src/KubernetesContent.tsx"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport
|
|
1
|
+
{"version":3,"file":"KubernetesContent.esm.js","sources":["../src/KubernetesContent.tsx"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ReactNode } from 'react';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport { Entity } from '@backstage/catalog-model';\nimport {\n ErrorPanel,\n ErrorReporting,\n Cluster,\n useKubernetesObjects,\n DetectedErrorsContext,\n} from '@backstage/plugin-kubernetes-react';\nimport {\n DetectedError,\n detectErrors,\n} from '@backstage/plugin-kubernetes-common';\nimport {\n Content,\n EmptyState,\n Page,\n Progress,\n} from '@backstage/core-components';\nimport { RequireKubernetesPermissions } from './RequireKubernetesPermissions';\n\ntype KubernetesContentProps = {\n entity: Entity;\n refreshIntervalMs?: number;\n children?: ReactNode;\n};\n\nexport const KubernetesContent = ({\n entity,\n refreshIntervalMs,\n}: KubernetesContentProps) => {\n const { kubernetesObjects, error } = useKubernetesObjects(\n entity,\n refreshIntervalMs,\n );\n\n const clusters = kubernetesObjects?.items.map(item => item.cluster) ?? [];\n\n const clustersWithErrors =\n kubernetesObjects?.items.filter(r => r.errors.length > 0) ?? [];\n\n const detectedErrors =\n kubernetesObjects !== undefined\n ? detectErrors(kubernetesObjects)\n : new Map<string, DetectedError[]>();\n\n return (\n <Page themeId=\"tool\">\n <Content>\n <RequireKubernetesPermissions>\n <DetectedErrorsContext.Provider\n value={[...detectedErrors.values()].flat()}\n >\n {kubernetesObjects === undefined && error === undefined && (\n <Progress />\n )}\n\n {/* errors retrieved from the kubernetes clusters */}\n {clustersWithErrors.length > 0 && (\n <Grid container spacing={3} direction=\"column\">\n <Grid item>\n <ErrorPanel\n entityName={entity.metadata.name}\n clustersWithErrors={clustersWithErrors}\n />\n </Grid>\n </Grid>\n )}\n\n {/* other errors */}\n {error !== undefined && (\n <Grid container spacing={3} direction=\"column\">\n <Grid item>\n <ErrorPanel\n entityName={entity.metadata.name}\n errorMessage={error}\n />\n </Grid>\n </Grid>\n )}\n\n {kubernetesObjects && (\n <Grid container spacing={3} direction=\"column\">\n <Grid item>\n <ErrorReporting\n detectedErrors={detectedErrors}\n clusters={clusters}\n />\n </Grid>\n <Grid item>\n <Typography variant=\"h3\">Your Clusters</Typography>\n </Grid>\n <Grid item container>\n {kubernetesObjects?.items.length <= 0 && (\n <Grid\n container\n justifyContent=\"space-around\"\n direction=\"row\"\n alignItems=\"center\"\n spacing={2}\n >\n <Grid item xs={8}>\n <EmptyState\n missing=\"data\"\n title=\"No Kubernetes resources\"\n description={`No resources on any known clusters for ${entity.metadata.name}`}\n />\n </Grid>\n </Grid>\n )}\n {kubernetesObjects?.items.length > 0 &&\n kubernetesObjects?.items.map((item, i) => {\n const podsWithErrors = new Set<string>(\n detectedErrors\n .get(item.cluster.name)\n ?.filter(de => de.sourceRef.kind === 'Pod')\n .map(de => de.sourceRef.name),\n );\n\n return (\n <Grid item key={i} xs={12}>\n <Cluster\n clusterObjects={item}\n podsWithErrors={podsWithErrors}\n />\n </Grid>\n );\n })}\n </Grid>\n </Grid>\n )}\n </DetectedErrorsContext.Provider>\n </RequireKubernetesPermissions>\n </Content>\n </Page>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AA6CO,MAAM,oBAAoB,CAAC;AAAA,EAChC,MAAA;AAAA,EACA;AACF,CAA8B,KAAA;AAC5B,EAAM,MAAA,EAAE,iBAAmB,EAAA,KAAA,EAAU,GAAA,oBAAA;AAAA,IACnC,MAAA;AAAA,IACA;AAAA,GACF;AAEA,EAAM,MAAA,QAAA,GAAW,mBAAmB,KAAM,CAAA,GAAA,CAAI,UAAQ,IAAK,CAAA,OAAO,KAAK,EAAC;AAExE,EAAM,MAAA,kBAAA,GACJ,iBAAmB,EAAA,KAAA,CAAM,MAAO,CAAA,CAAA,CAAA,KAAK,EAAE,MAAO,CAAA,MAAA,GAAS,CAAC,CAAA,IAAK,EAAC;AAEhE,EAAA,MAAM,iBACJ,iBAAsB,KAAA,KAAA,CAAA,GAClB,aAAa,iBAAiB,CAAA,uBAC1B,GAA6B,EAAA;AAEvC,EAAA,2BACG,IAAK,EAAA,EAAA,OAAA,EAAQ,QACZ,QAAC,kBAAA,GAAA,CAAA,OAAA,EAAA,EACC,8BAAC,4BACC,EAAA,EAAA,QAAA,kBAAA,IAAA;AAAA,IAAC,qBAAsB,CAAA,QAAA;AAAA,IAAtB;AAAA,MACC,OAAO,CAAC,GAAG,eAAe,MAAO,EAAC,EAAE,IAAK,EAAA;AAAA,MAExC,QAAA,EAAA;AAAA,QAAA,iBAAA,KAAsB,KAAa,CAAA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CAAA;AAAA,aAEH;AAAA,WACL,EAAA;AAAA,SACF,EAAA;AAAA;AAAA;AAAA,GAEJ,EACF,GACF,CACF,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { kubernetesClustersReadPermission, kubernetesResourcesReadPermission } from '@backstage/plugin-kubernetes-common';
|
|
3
3
|
import { usePermission } from '@backstage/plugin-permission-react';
|
|
4
4
|
import { WarningPanel } from '@backstage/core-components';
|
|
@@ -17,9 +17,9 @@ function RequireKubernetesPermissions(props) {
|
|
|
17
17
|
return null;
|
|
18
18
|
}
|
|
19
19
|
if (kubernetesClustersPermissionResult.allowed && kubernetesResourcesPermissionResult.allowed) {
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ jsx(Fragment, { children: props.children });
|
|
21
21
|
}
|
|
22
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
23
|
WarningPanel,
|
|
24
24
|
{
|
|
25
25
|
title: t("kubernetesContentPage.permissionAlert.title"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequireKubernetesPermissions.esm.js","sources":["../src/RequireKubernetesPermissions.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport
|
|
1
|
+
{"version":3,"file":"RequireKubernetesPermissions.esm.js","sources":["../src/RequireKubernetesPermissions.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ReactNode } from 'react';\nimport {\n kubernetesClustersReadPermission,\n kubernetesResourcesReadPermission,\n} from '@backstage/plugin-kubernetes-common';\nimport { usePermission } from '@backstage/plugin-permission-react';\nimport { WarningPanel } from '@backstage/core-components';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { kubernetesTranslationRef } from './alpha/translation';\n\nexport type RequireKubernetesPermissionProps = {\n children: ReactNode;\n};\n\nexport function RequireKubernetesPermissions(\n props: RequireKubernetesPermissionProps,\n): JSX.Element | null {\n const kubernetesClustersPermissionResult = usePermission({\n permission: kubernetesClustersReadPermission,\n });\n const kubernetesResourcesPermissionResult = usePermission({\n permission: kubernetesResourcesReadPermission,\n });\n const { t } = useTranslationRef(kubernetesTranslationRef);\n\n if (\n kubernetesClustersPermissionResult.loading ||\n kubernetesResourcesPermissionResult.loading\n ) {\n return null;\n }\n\n if (\n kubernetesClustersPermissionResult.allowed &&\n kubernetesResourcesPermissionResult.allowed\n ) {\n return <>{props.children}</>;\n }\n\n return (\n <WarningPanel\n title={t('kubernetesContentPage.permissionAlert.title')}\n message={t('kubernetesContentPage.permissionAlert.message')}\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;AA6BO,SAAS,6BACd,KACoB,EAAA;AACpB,EAAA,MAAM,qCAAqC,aAAc,CAAA;AAAA,IACvD,UAAY,EAAA;AAAA,GACb,CAAA;AACD,EAAA,MAAM,sCAAsC,aAAc,CAAA;AAAA,IACxD,UAAY,EAAA;AAAA,GACb,CAAA;AACD,EAAA,MAAM,EAAE,CAAA,EAAM,GAAA,iBAAA,CAAkB,wBAAwB,CAAA;AAExD,EACE,IAAA,kCAAA,CAAmC,OACnC,IAAA,mCAAA,CAAoC,OACpC,EAAA;AACA,IAAO,OAAA,IAAA;AAAA;AAGT,EACE,IAAA,kCAAA,CAAmC,OACnC,IAAA,mCAAA,CAAoC,OACpC,EAAA;AACA,IAAO,uBAAA,GAAA,CAAA,QAAA,EAAA,EAAG,gBAAM,QAAS,EAAA,CAAA;AAAA;AAG3B,EACE,uBAAA,GAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO,EAAE,6CAA6C,CAAA;AAAA,MACtD,OAAA,EAAS,EAAE,+CAA+C;AAAA;AAAA,GAC5D;AAEJ;;;;"}
|
package/dist/Router.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useEntity, MissingAnnotationEmptyState } from '@backstage/plugin-catalog-react';
|
|
3
3
|
import { Routes, Route } from 'react-router-dom';
|
|
4
4
|
import { KubernetesContent } from './KubernetesContent.esm.js';
|
|
@@ -13,11 +13,11 @@ const Router = (props) => {
|
|
|
13
13
|
const kubernetesAnnotationValue = entity.metadata.annotations?.[KUBERNETES_ANNOTATION];
|
|
14
14
|
const kubernetesLabelSelectorQueryAnnotationValue = entity.metadata.annotations?.[KUBERNETES_LABEL_SELECTOR_QUERY_ANNOTATION];
|
|
15
15
|
if (kubernetesAnnotationValue || kubernetesLabelSelectorQueryAnnotationValue) {
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ jsx(Routes, { children: /* @__PURE__ */ jsx(
|
|
17
17
|
Route,
|
|
18
18
|
{
|
|
19
19
|
path: "/",
|
|
20
|
-
element: /* @__PURE__ */
|
|
20
|
+
element: /* @__PURE__ */ jsx(
|
|
21
21
|
KubernetesContent,
|
|
22
22
|
{
|
|
23
23
|
entity,
|
|
@@ -25,17 +25,21 @@ const Router = (props) => {
|
|
|
25
25
|
}
|
|
26
26
|
)
|
|
27
27
|
}
|
|
28
|
-
));
|
|
28
|
+
) });
|
|
29
29
|
}
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31
|
+
/* @__PURE__ */ jsx(MissingAnnotationEmptyState, { annotation: KUBERNETES_ANNOTATION }),
|
|
32
|
+
/* @__PURE__ */ jsx("h1", { children: "Or use a label selector query, which takes precedence over the previous annotation." }),
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
Button,
|
|
35
|
+
{
|
|
36
|
+
variant: "contained",
|
|
37
|
+
color: "primary",
|
|
38
|
+
href: "https://backstage.io/docs/features/kubernetes/configuration#surfacing-your-kubernetes-components-as-part-of-an-entity",
|
|
39
|
+
children: "Read Kubernetes Plugin Docs"
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] });
|
|
39
43
|
};
|
|
40
44
|
|
|
41
45
|
export { Router, isKubernetesAvailable };
|
package/dist/Router.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Router.esm.js","sources":["../src/Router.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport
|
|
1
|
+
{"version":3,"file":"Router.esm.js","sources":["../src/Router.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Entity } from '@backstage/catalog-model';\nimport {\n useEntity,\n MissingAnnotationEmptyState,\n} from '@backstage/plugin-catalog-react';\nimport { Route, Routes } from 'react-router-dom';\nimport { KubernetesContent } from './KubernetesContent';\nimport Button from '@material-ui/core/Button';\nimport {\n KUBERNETES_ANNOTATION,\n KUBERNETES_LABEL_SELECTOR_QUERY_ANNOTATION,\n} from '@backstage/plugin-kubernetes-common';\n\nexport const isKubernetesAvailable = (entity: Entity) =>\n Boolean(entity.metadata.annotations?.[KUBERNETES_ANNOTATION]) ||\n Boolean(\n entity.metadata.annotations?.[KUBERNETES_LABEL_SELECTOR_QUERY_ANNOTATION],\n );\n\nexport const Router = (props: { refreshIntervalMs?: number }) => {\n const { entity } = useEntity();\n\n const kubernetesAnnotationValue =\n entity.metadata.annotations?.[KUBERNETES_ANNOTATION];\n\n const kubernetesLabelSelectorQueryAnnotationValue =\n entity.metadata.annotations?.[KUBERNETES_LABEL_SELECTOR_QUERY_ANNOTATION];\n\n if (\n kubernetesAnnotationValue ||\n kubernetesLabelSelectorQueryAnnotationValue\n ) {\n return (\n <Routes>\n <Route\n path=\"/\"\n element={\n <KubernetesContent\n entity={entity}\n refreshIntervalMs={props.refreshIntervalMs}\n />\n }\n />\n </Routes>\n );\n }\n\n return (\n <>\n <MissingAnnotationEmptyState annotation={KUBERNETES_ANNOTATION} />\n <h1>\n Or use a label selector query, which takes precedence over the previous\n annotation.\n </h1>\n <Button\n variant=\"contained\"\n color=\"primary\"\n href=\"https://backstage.io/docs/features/kubernetes/configuration#surfacing-your-kubernetes-components-as-part-of-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;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { useEntity } from '@backstage/plugin-catalog-react';
|
|
2
3
|
import { KubernetesContent } from '../KubernetesContent.esm.js';
|
|
3
|
-
import React from 'react';
|
|
4
4
|
|
|
5
5
|
function KubernetesContentPage() {
|
|
6
6
|
const { entity } = useEntity();
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(KubernetesContent, { entity });
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { KubernetesContentPage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KubernetesContentPage.esm.js","sources":["../../src/alpha/KubernetesContentPage.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEntity } from '@backstage/plugin-catalog-react';\nimport { KubernetesContent } from '../KubernetesContent';\
|
|
1
|
+
{"version":3,"file":"KubernetesContentPage.esm.js","sources":["../../src/alpha/KubernetesContentPage.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEntity } from '@backstage/plugin-catalog-react';\nimport { KubernetesContent } from '../KubernetesContent';\n\nexport function KubernetesContentPage() {\n const { entity } = useEntity();\n return <KubernetesContent entity={entity} />;\n}\n"],"names":[],"mappings":";;;;AAmBO,SAAS,qBAAwB,GAAA;AACtC,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA;AAC7B,EAAO,uBAAA,GAAA,CAAC,qBAAkB,MAAgB,EAAA,CAAA;AAC5C;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { compatWrapper } from '@backstage/core-compat-api';
|
|
3
3
|
import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
4
|
+
import { isKubernetesAvailable } from '../Router.esm.js';
|
|
4
5
|
|
|
5
6
|
const entityKubernetesContent = EntityContentBlueprint.make({
|
|
6
7
|
name: "kubernetes",
|
|
@@ -8,9 +9,9 @@ const entityKubernetesContent = EntityContentBlueprint.make({
|
|
|
8
9
|
defaultPath: "/kubernetes",
|
|
9
10
|
defaultTitle: "Kubernetes",
|
|
10
11
|
defaultGroup: "deployment",
|
|
11
|
-
filter:
|
|
12
|
+
filter: isKubernetesAvailable,
|
|
12
13
|
loader: () => import('./KubernetesContentPage.esm.js').then(
|
|
13
|
-
(m) => compatWrapper(/* @__PURE__ */
|
|
14
|
+
(m) => compatWrapper(/* @__PURE__ */ jsx(m.KubernetesContentPage, {}))
|
|
14
15
|
)
|
|
15
16
|
}
|
|
16
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityContents.esm.js","sources":["../../src/alpha/entityContents.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport
|
|
1
|
+
{"version":3,"file":"entityContents.esm.js","sources":["../../src/alpha/entityContents.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { compatWrapper } from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isKubernetesAvailable } from '../Router';\n\nexport const entityKubernetesContent = EntityContentBlueprint.make({\n name: 'kubernetes',\n params: {\n defaultPath: '/kubernetes',\n defaultTitle: 'Kubernetes',\n defaultGroup: 'deployment',\n filter: isKubernetesAvailable,\n loader: () =>\n import('./KubernetesContentPage').then(m =>\n compatWrapper(<m.KubernetesContentPage />),\n ),\n },\n});\n"],"names":[],"mappings":";;;;;AAoBa,MAAA,uBAAA,GAA0B,uBAAuB,IAAK,CAAA;AAAA,EACjE,IAAM,EAAA,YAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,aAAA;AAAA,IACb,YAAc,EAAA,YAAA;AAAA,IACd,YAAc,EAAA,YAAA;AAAA,IACd,MAAQ,EAAA,qBAAA;AAAA,IACR,MAAQ,EAAA,MACN,OAAO,gCAAyB,CAAE,CAAA,IAAA;AAAA,MAAK,OACrC,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,qBAAA,EAAF,EAAwB,CAAE;AAAA;AAC3C;AAEN,CAAC;;;;"}
|
package/dist/alpha/pages.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { PageBlueprint } from '@backstage/frontend-plugin-api';
|
|
3
3
|
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
4
4
|
import { rootCatalogKubernetesRouteRef } from '../plugin.esm.js';
|
|
@@ -10,7 +10,7 @@ const kubernetesPage = PageBlueprint.make({
|
|
|
10
10
|
// by wrapping into the convertLegacyRouteRef.
|
|
11
11
|
routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),
|
|
12
12
|
// these inputs usually match the props required by the component.
|
|
13
|
-
loader: () => import('../Router.esm.js').then((m) => compatWrapper(/* @__PURE__ */
|
|
13
|
+
loader: () => import('../Router.esm.js').then((m) => compatWrapper(/* @__PURE__ */ jsx(m.Router, {})))
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.esm.js","sources":["../../src/alpha/pages.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport
|
|
1
|
+
{"version":3,"file":"pages.esm.js","sources":["../../src/alpha/pages.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { PageBlueprint } from '@backstage/frontend-plugin-api'; // Add this line to import React\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { rootCatalogKubernetesRouteRef } from '../plugin';\n\nexport const kubernetesPage = PageBlueprint.make({\n params: {\n defaultPath: '/kubernetes',\n // you can reuse the existing routeRef\n // by wrapping into the convertLegacyRouteRef.\n routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),\n // these inputs usually match the props required by the component.\n loader: () => import('../Router').then(m => compatWrapper(<m.Router />)),\n },\n});\n"],"names":[],"mappings":";;;;;AAuBa,MAAA,cAAA,GAAiB,cAAc,IAAK,CAAA;AAAA,EAC/C,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,aAAA;AAAA;AAAA;AAAA,IAGb,QAAA,EAAU,sBAAsB,6BAA6B,CAAA;AAAA;AAAA,IAE7D,MAAQ,EAAA,MAAM,OAAO,kBAAW,CAAE,CAAA,IAAA,CAAK,CAAK,CAAA,KAAA,aAAA,iBAAe,GAAA,CAAA,CAAA,CAAE,MAAF,EAAA,EAAS,CAAE,CAAC;AAAA;AAE3E,CAAC;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
2
|
-
import
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { Entity } from '@backstage/catalog-model';
|
|
4
4
|
export * from '@backstage/plugin-kubernetes-react';
|
|
5
5
|
|
|
@@ -22,6 +22,6 @@ declare const EntityKubernetesContent: (props: EntityKubernetesContentProps) =>
|
|
|
22
22
|
declare const isKubernetesAvailable: (entity: Entity) => boolean;
|
|
23
23
|
declare const Router: (props: {
|
|
24
24
|
refreshIntervalMs?: number;
|
|
25
|
-
}) =>
|
|
25
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
26
26
|
|
|
27
27
|
export { EntityKubernetesContent, type EntityKubernetesContentProps, Router, isKubernetesAvailable, kubernetesPlugin, kubernetesPlugin as plugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-kubernetes",
|
|
3
|
-
"version": "0.12.6-next.
|
|
3
|
+
"version": "0.12.6-next.2",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards Kubernetes",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"types": "./dist/index.d.ts",
|
|
50
50
|
"typesVersions": {
|
|
51
51
|
"*": {
|
|
52
|
-
"*": [
|
|
53
|
-
"dist/index.d.ts"
|
|
54
|
-
],
|
|
55
52
|
"alpha": [
|
|
56
53
|
"dist/alpha.d.ts"
|
|
54
|
+
],
|
|
55
|
+
"package.json": [
|
|
56
|
+
"package.json"
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
59
|
},
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@backstage/catalog-model": "1.7.3",
|
|
74
|
-
"@backstage/core-compat-api": "0.4.1-next.
|
|
75
|
-
"@backstage/core-components": "0.17.
|
|
76
|
-
"@backstage/core-plugin-api": "1.10.
|
|
77
|
-
"@backstage/frontend-plugin-api": "0.10.
|
|
78
|
-
"@backstage/plugin-catalog-react": "1.
|
|
74
|
+
"@backstage/core-compat-api": "0.4.1-next.2",
|
|
75
|
+
"@backstage/core-components": "0.17.1-next.1",
|
|
76
|
+
"@backstage/core-plugin-api": "1.10.6-next.0",
|
|
77
|
+
"@backstage/frontend-plugin-api": "0.10.1-next.1",
|
|
78
|
+
"@backstage/plugin-catalog-react": "1.17.0-next.2",
|
|
79
79
|
"@backstage/plugin-kubernetes-common": "0.9.4",
|
|
80
|
-
"@backstage/plugin-kubernetes-react": "0.5.
|
|
81
|
-
"@backstage/plugin-permission-react": "0.4.
|
|
80
|
+
"@backstage/plugin-kubernetes-react": "0.5.6-next.1",
|
|
81
|
+
"@backstage/plugin-permission-react": "0.4.33-next.0",
|
|
82
82
|
"@kubernetes-models/apimachinery": "^2.0.0",
|
|
83
83
|
"@kubernetes-models/base": "^5.0.0",
|
|
84
84
|
"@kubernetes/client-node": "1.0.0-rc7",
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
"xterm-addon-fit": "^0.8.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@backstage/cli": "0.32.0-next.
|
|
97
|
-
"@backstage/dev-utils": "1.1.9-next.
|
|
98
|
-
"@backstage/test-utils": "1.7.
|
|
96
|
+
"@backstage/cli": "0.32.0-next.2",
|
|
97
|
+
"@backstage/dev-utils": "1.1.9-next.2",
|
|
98
|
+
"@backstage/test-utils": "1.7.7-next.0",
|
|
99
99
|
"@testing-library/dom": "^10.0.0",
|
|
100
100
|
"@testing-library/jest-dom": "^6.0.0",
|
|
101
101
|
"@testing-library/react": "^16.0.0",
|