@backstage/plugin-kubernetes 0.12.13-next.0 → 0.12.14-next.0
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 +31 -0
- package/dist/KubernetesContent.esm.js +9 -3
- package/dist/KubernetesContent.esm.js.map +1 -1
- package/dist/alpha/entityContents.esm.js +1 -4
- package/dist/alpha/entityContents.esm.js.map +1 -1
- package/dist/alpha/pages.esm.js +2 -6
- package/dist/alpha/pages.esm.js.map +1 -1
- package/dist/alpha/plugin.esm.js +1 -2
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha/translation.esm.js +8 -0
- package/dist/alpha/translation.esm.js.map +1 -1
- package/dist/alpha.d.ts +12 -7
- package/dist/package.json.esm.js +1 -2
- package/dist/package.json.esm.js.map +1 -1
- package/package.json +12 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.12.14-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f15d5f1: add missing i18n support for kubernetes and kubernetes-react
|
|
8
|
+
- d02db50: Remove unnecessary use of `compatWrapper` and `convertLegacyRouteRef`(s) for the new frontend system.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/frontend-plugin-api@0.13.2-next.0
|
|
11
|
+
- @backstage/plugin-kubernetes-react@0.5.14-next.0
|
|
12
|
+
- @backstage/core-plugin-api@1.12.1-next.0
|
|
13
|
+
- @backstage/plugin-catalog-react@1.21.4-next.0
|
|
14
|
+
- @backstage/core-components@0.18.4-next.0
|
|
15
|
+
- @backstage/plugin-permission-react@0.4.39-next.0
|
|
16
|
+
- @backstage/catalog-model@1.7.6
|
|
17
|
+
- @backstage/plugin-kubernetes-common@0.9.8
|
|
18
|
+
|
|
19
|
+
## 0.12.13
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @backstage/frontend-plugin-api@0.13.0
|
|
25
|
+
- @backstage/core-compat-api@0.5.4
|
|
26
|
+
- @backstage/plugin-catalog-react@1.21.3
|
|
27
|
+
- @backstage/core-components@0.18.3
|
|
28
|
+
- @backstage/plugin-kubernetes-common@0.9.8
|
|
29
|
+
- @backstage/plugin-kubernetes-react@0.5.13
|
|
30
|
+
- @backstage/core-plugin-api@1.12.0
|
|
31
|
+
- @backstage/plugin-permission-react@0.4.38
|
|
32
|
+
- @backstage/catalog-model@1.7.6
|
|
33
|
+
|
|
3
34
|
## 0.12.13-next.0
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -5,6 +5,8 @@ import { useKubernetesObjects, DetectedErrorsContext, ErrorPanel, ErrorReporting
|
|
|
5
5
|
import { detectErrors } from '@backstage/plugin-kubernetes-common';
|
|
6
6
|
import { Progress, EmptyState } from '@backstage/core-components';
|
|
7
7
|
import { RequireKubernetesPermissions } from './RequireKubernetesPermissions.esm.js';
|
|
8
|
+
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
9
|
+
import { kubernetesTranslationRef } from './alpha/translation.esm.js';
|
|
8
10
|
|
|
9
11
|
const KubernetesContent = ({
|
|
10
12
|
entity,
|
|
@@ -14,6 +16,7 @@ const KubernetesContent = ({
|
|
|
14
16
|
entity,
|
|
15
17
|
refreshIntervalMs
|
|
16
18
|
);
|
|
19
|
+
const { t } = useTranslationRef(kubernetesTranslationRef);
|
|
17
20
|
const clusters = kubernetesObjects?.items.map((item) => item.cluster) ?? [];
|
|
18
21
|
const clustersWithErrors = kubernetesObjects?.items.filter((r) => r.errors.length > 0) ?? [];
|
|
19
22
|
const detectedErrors = kubernetesObjects !== void 0 ? detectErrors(kubernetesObjects) : /* @__PURE__ */ new Map();
|
|
@@ -45,7 +48,7 @@ const KubernetesContent = ({
|
|
|
45
48
|
clusters
|
|
46
49
|
}
|
|
47
50
|
) }),
|
|
48
|
-
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Typography, { variant: "h3", children: "
|
|
51
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Typography, { variant: "h3", children: t("kubernetesContentPage.title") }) }),
|
|
49
52
|
/* @__PURE__ */ jsxs(Grid, { item: true, container: true, children: [
|
|
50
53
|
kubernetesObjects?.items.length <= 0 && /* @__PURE__ */ jsx(
|
|
51
54
|
Grid,
|
|
@@ -59,8 +62,11 @@ const KubernetesContent = ({
|
|
|
59
62
|
EmptyState,
|
|
60
63
|
{
|
|
61
64
|
missing: "data",
|
|
62
|
-
title: "
|
|
63
|
-
description:
|
|
65
|
+
title: t("kubernetesContentPage.emptyState.title"),
|
|
66
|
+
description: t(
|
|
67
|
+
"kubernetesContentPage.emptyState.description",
|
|
68
|
+
{ entityName: entity.metadata.name }
|
|
69
|
+
)
|
|
64
70
|
}
|
|
65
71
|
) })
|
|
66
72
|
}
|
|
@@ -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 { 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 { EmptyState, Progress } 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 <RequireKubernetesPermissions>\n <DetectedErrorsContext.Provider\n value={[...detectedErrors.values()].flat()}\n >\n {kubernetesObjects === undefined && error === undefined && <Progress />}\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\"
|
|
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 { EmptyState, Progress } from '@backstage/core-components';\nimport { RequireKubernetesPermissions } from './RequireKubernetesPermissions';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { kubernetesTranslationRef } from './alpha/translation';\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 const { t } = useTranslationRef(kubernetesTranslationRef);\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 <RequireKubernetesPermissions>\n <DetectedErrorsContext.Provider\n value={[...detectedErrors.values()].flat()}\n >\n {kubernetesObjects === undefined && error === undefined && <Progress />}\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\">\n {t('kubernetesContentPage.title')}\n </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={t('kubernetesContentPage.emptyState.title')}\n description={t(\n 'kubernetesContentPage.emptyState.description',\n { entityName: entity.metadata.name },\n )}\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 );\n};\n"],"names":[],"mappings":";;;;;;;;;;AA0CO,MAAM,oBAAoB,CAAC;AAAA,EAChC,MAAA;AAAA,EACA;AACF,CAAA,KAA8B;AAC5B,EAAA,MAAM,EAAE,iBAAA,EAAmB,KAAA,EAAM,GAAI,oBAAA;AAAA,IACnC,MAAA;AAAA,IACA;AAAA,GACF;AACA,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,iBAAA,CAAkB,wBAAwB,CAAA;AAExD,EAAA,MAAM,QAAA,GAAW,mBAAmB,KAAA,CAAM,GAAA,CAAI,UAAQ,IAAA,CAAK,OAAO,KAAK,EAAC;AAExE,EAAA,MAAM,kBAAA,GACJ,iBAAA,EAAm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AA,CAAI,CAAC,IAAA,EAAM,CAAA,KAAM;AACxC,cAAA,MAAM,iBAAiB,IAAI,GAAA;AAAA,gBACzB,eACG,GAAA,CAAI,IAAA,CAAK,OAAA,CAAQ,IAAI,GACpB,MAAA,CAAO,CAAA,EAAA,KAAM,EAAA,CAAG,SAAA,CAAU,SAAS,KAAK,CAAA,CACzC,IAAI,CAAA,EAAA,KAAM,EAAA,CAAG,UAAU,IAAI;AAAA,eAChC;AAEA,cAAA,uBACE,GAAA,CAAC,IAAA,EAAA,EAAK,IAAA,EAAI,IAAA,EAAS,IAAI,EAAA,EACrB,QAAA,kBAAA,GAAA;AAAA,gBAAC,OAAA;AAAA,gBAAA;AAAA,kBACC,cAAA,EAAgB,IAAA;AAAA,kBAChB;AAAA;AAAA,mBAHY,CAKhB,CAAA;AAAA,YAEJ,CAAC;AAAA,WAAA,EACL;AAAA,SAAA,EACF;AAAA;AAAA;AAAA,GAEJ,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { compatWrapper } from '@backstage/core-compat-api';
|
|
3
2
|
import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
4
3
|
import { isKubernetesAvailable } from '../Router.esm.js';
|
|
5
4
|
|
|
@@ -10,9 +9,7 @@ const entityKubernetesContent = EntityContentBlueprint.make({
|
|
|
10
9
|
title: "Kubernetes",
|
|
11
10
|
group: "deployment",
|
|
12
11
|
filter: isKubernetesAvailable,
|
|
13
|
-
loader: () => import('./KubernetesContentPage.esm.js').then(
|
|
14
|
-
(m) => compatWrapper(/* @__PURE__ */ jsx(m.KubernetesContentPage, {}))
|
|
15
|
-
)
|
|
12
|
+
loader: () => import('./KubernetesContentPage.esm.js').then((m) => /* @__PURE__ */ jsx(m.KubernetesContentPage, {}))
|
|
16
13
|
}
|
|
17
14
|
});
|
|
18
15
|
|
|
@@ -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 { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isKubernetesAvailable } from '../Router';\n\nexport const entityKubernetesContent = EntityContentBlueprint.make({\n name: 'kubernetes',\n params: {\n path: '/kubernetes',\n title: 'Kubernetes',\n group: 'deployment',\n filter: isKubernetesAvailable,\n loader: () =>\n import('./KubernetesContentPage').then(m => <m.KubernetesContentPage />),\n },\n});\n"],"names":[],"mappings":";;;;AAmBO,MAAM,uBAAA,GAA0B,uBAAuB,IAAA,CAAK;AAAA,EACjE,IAAA,EAAM,YAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,aAAA;AAAA,IACN,KAAA,EAAO,YAAA;AAAA,IACP,KAAA,EAAO,YAAA;AAAA,IACP,MAAA,EAAQ,qBAAA;AAAA,IACR,MAAA,EAAQ,MACN,OAAO,gCAAyB,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,qBAAK,GAAA,CAAC,CAAA,CAAE,qBAAA,EAAF,EAAwB,CAAE;AAAA;AAE7E,CAAC;;;;"}
|
package/dist/alpha/pages.esm.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { PageBlueprint } from '@backstage/frontend-plugin-api';
|
|
3
|
-
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
4
3
|
import { rootCatalogKubernetesRouteRef } from '../plugin.esm.js';
|
|
5
4
|
|
|
6
5
|
const kubernetesPage = PageBlueprint.make({
|
|
7
6
|
params: {
|
|
8
7
|
path: "/kubernetes",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),
|
|
12
|
-
// these inputs usually match the props required by the component.
|
|
13
|
-
loader: () => import('../Router.esm.js').then((m) => compatWrapper(/* @__PURE__ */ jsx(m.Router, {})))
|
|
8
|
+
routeRef: rootCatalogKubernetesRouteRef,
|
|
9
|
+
loader: () => import('../Router.esm.js').then((m) => /* @__PURE__ */ jsx(m.Router, {}))
|
|
14
10
|
}
|
|
15
11
|
});
|
|
16
12
|
|
|
@@ -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 { PageBlueprint } from '@backstage/frontend-plugin-api'
|
|
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';\nimport { rootCatalogKubernetesRouteRef } from '../plugin';\n\nexport const kubernetesPage = PageBlueprint.make({\n params: {\n path: '/kubernetes',\n routeRef: rootCatalogKubernetesRouteRef,\n loader: () => import('../Router').then(m => <m.Router />),\n },\n});\n"],"names":[],"mappings":";;;;AAmBO,MAAM,cAAA,GAAiB,cAAc,IAAA,CAAK;AAAA,EAC/C,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,aAAA;AAAA,IACN,QAAA,EAAU,6BAAA;AAAA,IACV,MAAA,EAAQ,MAAM,OAAO,kBAAW,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,qBAAK,GAAA,CAAC,CAAA,CAAE,MAAA,EAAF,EAAS,CAAE;AAAA;AAE5D,CAAC;;;;"}
|
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
2
1
|
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
2
|
import { kubernetesPage } from './pages.esm.js';
|
|
4
3
|
import { entityKubernetesContent } from './entityContents.esm.js';
|
|
@@ -16,7 +15,7 @@ var plugin = createFrontendPlugin({
|
|
|
16
15
|
kubernetesAuthProvidersApi,
|
|
17
16
|
kubernetesClusterLinkFormatterApi
|
|
18
17
|
],
|
|
19
|
-
routes:
|
|
18
|
+
routes: { kubernetes: rootCatalogKubernetesRouteRef }
|
|
20
19
|
});
|
|
21
20
|
|
|
22
21
|
export { plugin as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.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":"plugin.esm.js","sources":["../../src/alpha/plugin.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 { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport { kubernetesPage } from './pages';\nimport { entityKubernetesContent } from './entityContents';\nimport { rootCatalogKubernetesRouteRef } from '../plugin';\nimport {\n kubernetesApiExtension as kubernetesApi,\n kubernetesAuthProvidersApi,\n kubernetesClusterLinkFormatterApi,\n kubernetesProxyApi,\n} from './apis';\n\nexport default createFrontendPlugin({\n pluginId: 'kubernetes',\n info: { packageJson: () => import('../../package.json') },\n extensions: [\n kubernetesPage,\n entityKubernetesContent,\n kubernetesApi,\n kubernetesProxyApi,\n kubernetesAuthProvidersApi,\n kubernetesClusterLinkFormatterApi,\n ],\n routes: { kubernetes: rootCatalogKubernetesRouteRef },\n});\n"],"names":["kubernetesApi"],"mappings":";;;;;;AA2BA,aAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,YAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAA,EAAE;AAAA,EACxD,UAAA,EAAY;AAAA,IACV,cAAA;AAAA,IACA,uBAAA;AAAA,IACAA,sBAAA;AAAA,IACA,kBAAA;AAAA,IACA,0BAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,MAAA,EAAQ,EAAE,UAAA,EAAY,6BAAA;AACxB,CAAC,CAAA;;;;"}
|
|
@@ -7,7 +7,15 @@ const kubernetesTranslationRef = createTranslationRef({
|
|
|
7
7
|
permissionAlert: {
|
|
8
8
|
title: "Permission required",
|
|
9
9
|
message: "To view Kubernetes objects, contact your portal administrator to give you the 'kubernetes.clusters.read' and 'kubernetes.resources.read' permission."
|
|
10
|
+
},
|
|
11
|
+
title: "Your Clusters",
|
|
12
|
+
emptyState: {
|
|
13
|
+
title: "No Kubernetes resources",
|
|
14
|
+
description: "No resources on any known clusters for {{entityName}}"
|
|
10
15
|
}
|
|
16
|
+
},
|
|
17
|
+
entityContent: {
|
|
18
|
+
title: "Kubernetes"
|
|
11
19
|
}
|
|
12
20
|
}
|
|
13
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.esm.js","sources":["../../src/alpha/translation.ts"],"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 { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @alpha */\nexport const kubernetesTranslationRef = createTranslationRef({\n id: 'kubernetes',\n messages: {\n kubernetesContentPage: {\n permissionAlert: {\n title: 'Permission required',\n message:\n \"To view Kubernetes objects, contact your portal administrator to give you the 'kubernetes.clusters.read' and 'kubernetes.resources.read' permission.\",\n },\n },\n },\n});\n"],"names":[],"mappings":";;AAkBO,MAAM,2BAA2B,oBAAA,CAAqB;AAAA,EAC3D,EAAA,EAAI,YAAA;AAAA,EACJ,QAAA,EAAU;AAAA,IACR,qBAAA,EAAuB;AAAA,MACrB,eAAA,EAAiB;AAAA,QACf,KAAA,EAAO,qBAAA;AAAA,QACP,OAAA,EACE;AAAA;
|
|
1
|
+
{"version":3,"file":"translation.esm.js","sources":["../../src/alpha/translation.ts"],"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 { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @alpha */\nexport const kubernetesTranslationRef = createTranslationRef({\n id: 'kubernetes',\n messages: {\n kubernetesContentPage: {\n permissionAlert: {\n title: 'Permission required',\n message:\n \"To view Kubernetes objects, contact your portal administrator to give you the 'kubernetes.clusters.read' and 'kubernetes.resources.read' permission.\",\n },\n title: 'Your Clusters',\n emptyState: {\n title: 'No Kubernetes resources',\n description: 'No resources on any known clusters for {{entityName}}',\n },\n },\n entityContent: {\n title: 'Kubernetes',\n },\n },\n});\n"],"names":[],"mappings":";;AAkBO,MAAM,2BAA2B,oBAAA,CAAqB;AAAA,EAC3D,EAAA,EAAI,YAAA;AAAA,EACJ,QAAA,EAAU;AAAA,IACR,qBAAA,EAAuB;AAAA,MACrB,eAAA,EAAiB;AAAA,QACf,KAAA,EAAO,qBAAA;AAAA,QACP,OAAA,EACE;AAAA,OACJ;AAAA,MACA,KAAA,EAAO,eAAA;AAAA,MACP,UAAA,EAAY;AAAA,QACV,KAAA,EAAO,yBAAA;AAAA,QACP,WAAA,EAAa;AAAA;AACf,KACF;AAAA,IACA,aAAA,EAAe;AAAA,MACb,KAAA,EAAO;AAAA;AACT;AAEJ,CAAC;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -3,17 +3,22 @@ import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
|
|
5
5
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
6
|
+
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
6
7
|
|
|
7
8
|
/** @alpha */
|
|
8
9
|
declare const kubernetesTranslationRef: _backstage_core_plugin_api_alpha.TranslationRef<"kubernetes", {
|
|
10
|
+
readonly "entityContent.title": "Kubernetes";
|
|
11
|
+
readonly "kubernetesContentPage.title": "Your Clusters";
|
|
12
|
+
readonly "kubernetesContentPage.emptyState.title": "No Kubernetes resources";
|
|
13
|
+
readonly "kubernetesContentPage.emptyState.description": "No resources on any known clusters for {{entityName}}";
|
|
9
14
|
readonly "kubernetesContentPage.permissionAlert.message": "To view Kubernetes objects, contact your portal administrator to give you the 'kubernetes.clusters.read' and 'kubernetes.resources.read' permission.";
|
|
10
15
|
readonly "kubernetesContentPage.permissionAlert.title": "Permission required";
|
|
11
16
|
}>;
|
|
12
17
|
|
|
13
18
|
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
14
|
-
kubernetes:
|
|
19
|
+
kubernetes: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
15
20
|
}, {}, {
|
|
16
|
-
"api:kubernetes": _backstage_frontend_plugin_api.
|
|
21
|
+
"api:kubernetes": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
17
22
|
kind: "api";
|
|
18
23
|
name: undefined;
|
|
19
24
|
config: {};
|
|
@@ -22,7 +27,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
22
27
|
inputs: {};
|
|
23
28
|
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
24
29
|
}>;
|
|
25
|
-
"api:kubernetes/auth-providers": _backstage_frontend_plugin_api.
|
|
30
|
+
"api:kubernetes/auth-providers": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
26
31
|
kind: "api";
|
|
27
32
|
name: "auth-providers";
|
|
28
33
|
config: {};
|
|
@@ -31,7 +36,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
31
36
|
inputs: {};
|
|
32
37
|
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
33
38
|
}>;
|
|
34
|
-
"api:kubernetes/cluster-link-formatter": _backstage_frontend_plugin_api.
|
|
39
|
+
"api:kubernetes/cluster-link-formatter": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
35
40
|
kind: "api";
|
|
36
41
|
name: "cluster-link-formatter";
|
|
37
42
|
config: {};
|
|
@@ -40,7 +45,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
40
45
|
inputs: {};
|
|
41
46
|
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
42
47
|
}>;
|
|
43
|
-
"api:kubernetes/proxy": _backstage_frontend_plugin_api.
|
|
48
|
+
"api:kubernetes/proxy": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
44
49
|
kind: "api";
|
|
45
50
|
name: "proxy";
|
|
46
51
|
config: {};
|
|
@@ -49,7 +54,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
49
54
|
inputs: {};
|
|
50
55
|
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
51
56
|
}>;
|
|
52
|
-
"entity-content:kubernetes/kubernetes": _backstage_frontend_plugin_api.
|
|
57
|
+
"entity-content:kubernetes/kubernetes": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
53
58
|
kind: "entity-content";
|
|
54
59
|
name: "kubernetes";
|
|
55
60
|
config: {
|
|
@@ -86,7 +91,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
86
91
|
filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
|
|
87
92
|
};
|
|
88
93
|
}>;
|
|
89
|
-
"page:kubernetes": _backstage_frontend_plugin_api.
|
|
94
|
+
"page:kubernetes": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
90
95
|
kind: "page";
|
|
91
96
|
name: undefined;
|
|
92
97
|
config: {
|
package/dist/package.json.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@backstage/plugin-kubernetes";
|
|
2
|
-
var version = "0.12.
|
|
2
|
+
var version = "0.12.14-next.0";
|
|
3
3
|
var description = "A Backstage plugin that integrates towards Kubernetes";
|
|
4
4
|
var backstage = {
|
|
5
5
|
role: "frontend-plugin",
|
|
@@ -58,7 +58,6 @@ var scripts = {
|
|
|
58
58
|
};
|
|
59
59
|
var dependencies = {
|
|
60
60
|
"@backstage/catalog-model": "workspace:^",
|
|
61
|
-
"@backstage/core-compat-api": "workspace:^",
|
|
62
61
|
"@backstage/core-components": "workspace:^",
|
|
63
62
|
"@backstage/core-plugin-api": "workspace:^",
|
|
64
63
|
"@backstage/frontend-plugin-api": "workspace:^",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-kubernetes",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.14-next.0",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards Kubernetes",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -70,21 +70,20 @@
|
|
|
70
70
|
"test": "backstage-cli package test"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@backstage/catalog-model": "1.7.6
|
|
74
|
-
"@backstage/core-
|
|
75
|
-
"@backstage/core-
|
|
76
|
-
"@backstage/
|
|
77
|
-
"@backstage/
|
|
78
|
-
"@backstage/plugin-
|
|
79
|
-
"@backstage/plugin-kubernetes-
|
|
80
|
-
"@backstage/plugin-
|
|
81
|
-
"@backstage/plugin-permission-react": "0.4.38-next.0",
|
|
73
|
+
"@backstage/catalog-model": "1.7.6",
|
|
74
|
+
"@backstage/core-components": "0.18.4-next.0",
|
|
75
|
+
"@backstage/core-plugin-api": "1.12.1-next.0",
|
|
76
|
+
"@backstage/frontend-plugin-api": "0.13.2-next.0",
|
|
77
|
+
"@backstage/plugin-catalog-react": "1.21.4-next.0",
|
|
78
|
+
"@backstage/plugin-kubernetes-common": "0.9.8",
|
|
79
|
+
"@backstage/plugin-kubernetes-react": "0.5.14-next.0",
|
|
80
|
+
"@backstage/plugin-permission-react": "0.4.39-next.0",
|
|
82
81
|
"@material-ui/core": "^4.12.2"
|
|
83
82
|
},
|
|
84
83
|
"devDependencies": {
|
|
85
|
-
"@backstage/cli": "0.34.
|
|
86
|
-
"@backstage/dev-utils": "1.1.
|
|
87
|
-
"@backstage/test-utils": "1.7.
|
|
84
|
+
"@backstage/cli": "0.34.6-next.0",
|
|
85
|
+
"@backstage/dev-utils": "1.1.18-next.0",
|
|
86
|
+
"@backstage/test-utils": "1.7.14-next.0",
|
|
88
87
|
"@testing-library/dom": "^10.0.0",
|
|
89
88
|
"@testing-library/jest-dom": "^6.0.0",
|
|
90
89
|
"@testing-library/react": "^16.0.0",
|