@backstage/plugin-kubernetes 0.12.10-next.3 → 0.12.11-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 +29 -0
- package/dist/KubernetesContent.esm.js.map +1 -1
- package/dist/RequireKubernetesPermissions.esm.js.map +1 -1
- package/dist/Router.esm.js.map +1 -1
- package/dist/alpha/KubernetesContentPage.esm.js.map +1 -1
- package/dist/alpha/apis.esm.js +3 -3
- package/dist/alpha/apis.esm.js.map +1 -1
- package/dist/alpha/entityContents.esm.js.map +1 -1
- package/dist/alpha/pages.esm.js.map +1 -1
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha/translation.esm.js.map +1 -1
- package/dist/alpha.d.ts +1 -1
- package/dist/package.json.esm.js +1 -1
- package/dist/plugin.esm.js +2 -2
- package/dist/plugin.esm.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.12.11-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/core-compat-api@0.5.2-next.0
|
|
9
|
+
- @backstage/plugin-catalog-react@1.20.2-next.0
|
|
10
|
+
- @backstage/catalog-model@1.7.5
|
|
11
|
+
- @backstage/core-components@0.17.5
|
|
12
|
+
- @backstage/core-plugin-api@1.10.9
|
|
13
|
+
- @backstage/frontend-plugin-api@0.11.0
|
|
14
|
+
- @backstage/plugin-kubernetes-common@0.9.6
|
|
15
|
+
- @backstage/plugin-kubernetes-react@0.5.10
|
|
16
|
+
- @backstage/plugin-permission-react@0.4.36
|
|
17
|
+
|
|
18
|
+
## 0.12.10
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- e4ddf22: Internal update to align with new blueprint parameter naming in the new frontend system.
|
|
23
|
+
- f2f133c: Internal update to use the new variant of `ApiBlueprint`.
|
|
24
|
+
- 3025cf5: Removed the kubernetes content padding to avoid double padding on k8s entity page
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
- @backstage/core-components@0.17.5
|
|
27
|
+
- @backstage/frontend-plugin-api@0.11.0
|
|
28
|
+
- @backstage/core-compat-api@0.5.0
|
|
29
|
+
- @backstage/plugin-catalog-react@1.20.0
|
|
30
|
+
- @backstage/plugin-kubernetes-react@0.5.10
|
|
31
|
+
|
|
3
32
|
## 0.12.10-next.3
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -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\">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 );\n};\n"],"names":[],"mappings":";;;;;;;;AAwCO,MAAM,oBAAoB,CAAC;AAAA,EAChC,MAAA;AAAA,EACA;AACF,
|
|
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\">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 );\n};\n"],"names":[],"mappings":";;;;;;;;AAwCO,MAAM,oBAAoB,CAAC;AAAA,EAChC,MAAA;AAAA,EACA;AACF,CAAA,KAA8B;AAC5B,EAAA,MAAM,EAAE,iBAAA,EAAmB,KAAA,EAAM,GA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F;AAAA;AAAA,aACF;AAAA,YAED,iBAAA,EAAmB,MAAM,MAAA,GAAS,CAAA,IACjC,mBAAmB,KAAA,CAAM,GAAA,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 +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 { 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,
|
|
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,KAAA,EACoB;AACpB,EAAA,MAAM,qCAAqC,aAAA,CAAc;AAAA,IACvD,UAAA,EAAY;AAAA,GACb,CAAA;AACD,EAAA,MAAM,sCAAsC,aAAA,CAAc;AAAA,IACxD,UAAA,EAAY;AAAA,GACb,CAAA;AACD,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,iBAAA,CAAkB,wBAAwB,CAAA;AAExD,EAAA,IACE,kCAAA,CAAmC,OAAA,IACnC,mCAAA,CAAoC,OAAA,EACpC;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,IACE,kCAAA,CAAmC,OAAA,IACnC,mCAAA,CAAoC,OAAA,EACpC;AACA,IAAA,uBAAO,GAAA,CAAA,QAAA,EAAA,EAAG,gBAAM,QAAA,EAAS,CAAA;AAAA,EAC3B;AAEA,EAAA,uBACE,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.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 { 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-an-entity\"\n >\n Read Kubernetes Plugin Docs\n </Button>\n </>\n );\n};\n"],"names":[],"mappings":";;;;;;;
|
|
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-an-entity\"\n >\n Read Kubernetes Plugin Docs\n </Button>\n </>\n );\n};\n"],"names":[],"mappings":";;;;;;;AA6BO,MAAM,qBAAA,GAAwB,CAAC,MAAA,KACpC,OAAA,CAAQ,OAAO,QAAA,CAAS,WAAA,GAAc,qBAAqB,CAAC,CAAA,IAC5D,OAAA;AAAA,EACE,MAAA,CAAO,QAAA,CAAS,WAAA,GAAc,0CAA0C;AAC1E;AAEK,MAAM,MAAA,GAAS,CAAC,KAAA,KAA0C;AAC/D,EAAA,MAAM,EAAE,MAAA,EAAO,GAAI,SAAA,EAAU;AAE7B,EAAA,MAAM,yBAAA,GACJ,MAAA,CAAO,QAAA,CAAS,WAAA,GAAc,qBAAqB,CAAA;AAErD,EAAA,MAAM,2CAAA,GACJ,MAAA,CAAO,QAAA,CAAS,WAAA,GAAc,0CAA0C,CAAA;AAE1E,EAAA,IACE,6BACA,2CAAA,EACA;AACA,IAAA,2BACG,MAAA,EAAA,EACC,QAAA,kBAAA,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,IAAA,EAAK,GAAA;AAAA,QACL,OAAA,kBACE,GAAA;AAAA,UAAC,iBAAA;AAAA,UAAA;AAAA,YACC,MAAA;AAAA,YACA,mBAAmB,KAAA,CAAM;AAAA;AAAA;AAC3B;AAAA,KAEJ,EACF,CAAA;AAAA,EAEJ;AAEA,EAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,2BAAA,EAAA,EAA4B,YAAY,qBAAA,EAAuB,CAAA;AAAA,oBAChE,GAAA,CAAC,QAAG,QAAA,EAAA,qFAAA,EAGJ,CAAA;AAAA,oBACA,GAAA;AAAA,MAAC,MAAA;AAAA,MAAA;AAAA,QACC,OAAA,EAAQ,WAAA;AAAA,QACR,KAAA,EAAM,SAAA;AAAA,QACN,IAAA,EAAK,uHAAA;AAAA,QACN,QAAA,EAAA;AAAA;AAAA;AAED,GAAA,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -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';\n\nexport function KubernetesContentPage() {\n const { entity } = useEntity();\n return <KubernetesContent entity={entity} />;\n}\n"],"names":[],"mappings":";;;;AAmBO,SAAS,
|
|
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,qBAAA,GAAwB;AACtC,EAAA,MAAM,EAAE,MAAA,EAAO,GAAI,SAAA,EAAU;AAC7B,EAAA,uBAAO,GAAA,CAAC,qBAAkB,MAAA,EAAgB,CAAA;AAC5C;;;;"}
|
package/dist/alpha/apis.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiBlueprint,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ApiBlueprint, fetchApiRef, discoveryApiRef } from '@backstage/frontend-plugin-api';
|
|
2
|
+
import { KubernetesBackendClient, kubernetesAuthProvidersApiRef, kubernetesApiRef, KubernetesProxyClient, kubernetesProxyApiRef, KubernetesAuthProviders, kubernetesClusterLinkFormatterApiRef, getDefaultFormatters, KubernetesClusterLinkFormatter, DEFAULT_FORMATTER_NAME } from '@backstage/plugin-kubernetes-react';
|
|
3
|
+
import { oneloginAuthApiRef, oktaAuthApiRef, microsoftAuthApiRef, googleAuthApiRef, gitlabAuthApiRef } from '@backstage/core-plugin-api';
|
|
4
4
|
|
|
5
5
|
const kubernetesApiExtension = ApiBlueprint.make({
|
|
6
6
|
params: (defineParams) => defineParams({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apis.esm.js","sources":["../../src/alpha/apis.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 {\n ApiBlueprint,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/frontend-plugin-api';\nimport {\n KubernetesBackendClient,\n kubernetesApiRef,\n kubernetesProxyApiRef,\n kubernetesAuthProvidersApiRef,\n KubernetesAuthProviders,\n KubernetesProxyClient,\n kubernetesClusterLinkFormatterApiRef,\n getDefaultFormatters,\n KubernetesClusterLinkFormatter,\n DEFAULT_FORMATTER_NAME,\n} from '@backstage/plugin-kubernetes-react';\nimport {\n gitlabAuthApiRef,\n googleAuthApiRef,\n microsoftAuthApiRef,\n oktaAuthApiRef,\n oneloginAuthApiRef,\n} from '@backstage/core-plugin-api';\n\nexport const kubernetesApiExtension = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: kubernetesApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n kubernetesAuthProvidersApi: kubernetesAuthProvidersApiRef,\n },\n factory: ({ discoveryApi, fetchApi, kubernetesAuthProvidersApi }) =>\n new KubernetesBackendClient({\n discoveryApi,\n fetchApi,\n kubernetesAuthProvidersApi,\n }),\n }),\n});\n\nexport const kubernetesProxyApi = ApiBlueprint.make({\n name: 'proxy',\n params: defineParams =>\n defineParams({\n api: kubernetesProxyApiRef,\n deps: {\n kubernetesApi: kubernetesApiRef,\n },\n factory: ({ kubernetesApi }) =>\n new KubernetesProxyClient({\n kubernetesApi,\n }),\n }),\n});\n\nexport const kubernetesAuthProvidersApi = ApiBlueprint.make({\n name: 'auth-providers',\n params: defineParams =>\n defineParams({\n api: kubernetesAuthProvidersApiRef,\n deps: {\n gitlabAuthApi: gitlabAuthApiRef,\n googleAuthApi: googleAuthApiRef,\n microsoftAuthApi: microsoftAuthApiRef,\n oktaAuthApi: oktaAuthApiRef,\n oneloginAuthApi: oneloginAuthApiRef,\n },\n factory: ({\n gitlabAuthApi,\n googleAuthApi,\n microsoftAuthApi,\n oktaAuthApi,\n oneloginAuthApi,\n }) => {\n const oidcProviders = {\n gitlab: gitlabAuthApi,\n google: googleAuthApi,\n microsoft: microsoftAuthApi,\n okta: oktaAuthApi,\n onelogin: oneloginAuthApi,\n };\n\n return new KubernetesAuthProviders({\n microsoftAuthApi,\n googleAuthApi,\n oidcProviders,\n });\n },\n }),\n});\n\nexport const kubernetesClusterLinkFormatterApi = ApiBlueprint.make({\n name: 'cluster-link-formatter',\n params: defineParams =>\n defineParams({\n api: kubernetesClusterLinkFormatterApiRef,\n deps: { googleAuthApi: googleAuthApiRef },\n factory: deps => {\n const formatters = getDefaultFormatters(deps);\n return new KubernetesClusterLinkFormatter({\n formatters,\n defaultFormatterName: DEFAULT_FORMATTER_NAME,\n });\n },\n }),\n});\n"],"names":["kubernetesAuthProvidersApi"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"apis.esm.js","sources":["../../src/alpha/apis.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 {\n ApiBlueprint,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/frontend-plugin-api';\nimport {\n KubernetesBackendClient,\n kubernetesApiRef,\n kubernetesProxyApiRef,\n kubernetesAuthProvidersApiRef,\n KubernetesAuthProviders,\n KubernetesProxyClient,\n kubernetesClusterLinkFormatterApiRef,\n getDefaultFormatters,\n KubernetesClusterLinkFormatter,\n DEFAULT_FORMATTER_NAME,\n} from '@backstage/plugin-kubernetes-react';\nimport {\n gitlabAuthApiRef,\n googleAuthApiRef,\n microsoftAuthApiRef,\n oktaAuthApiRef,\n oneloginAuthApiRef,\n} from '@backstage/core-plugin-api';\n\nexport const kubernetesApiExtension = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: kubernetesApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n kubernetesAuthProvidersApi: kubernetesAuthProvidersApiRef,\n },\n factory: ({ discoveryApi, fetchApi, kubernetesAuthProvidersApi }) =>\n new KubernetesBackendClient({\n discoveryApi,\n fetchApi,\n kubernetesAuthProvidersApi,\n }),\n }),\n});\n\nexport const kubernetesProxyApi = ApiBlueprint.make({\n name: 'proxy',\n params: defineParams =>\n defineParams({\n api: kubernetesProxyApiRef,\n deps: {\n kubernetesApi: kubernetesApiRef,\n },\n factory: ({ kubernetesApi }) =>\n new KubernetesProxyClient({\n kubernetesApi,\n }),\n }),\n});\n\nexport const kubernetesAuthProvidersApi = ApiBlueprint.make({\n name: 'auth-providers',\n params: defineParams =>\n defineParams({\n api: kubernetesAuthProvidersApiRef,\n deps: {\n gitlabAuthApi: gitlabAuthApiRef,\n googleAuthApi: googleAuthApiRef,\n microsoftAuthApi: microsoftAuthApiRef,\n oktaAuthApi: oktaAuthApiRef,\n oneloginAuthApi: oneloginAuthApiRef,\n },\n factory: ({\n gitlabAuthApi,\n googleAuthApi,\n microsoftAuthApi,\n oktaAuthApi,\n oneloginAuthApi,\n }) => {\n const oidcProviders = {\n gitlab: gitlabAuthApi,\n google: googleAuthApi,\n microsoft: microsoftAuthApi,\n okta: oktaAuthApi,\n onelogin: oneloginAuthApi,\n };\n\n return new KubernetesAuthProviders({\n microsoftAuthApi,\n googleAuthApi,\n oidcProviders,\n });\n },\n }),\n});\n\nexport const kubernetesClusterLinkFormatterApi = ApiBlueprint.make({\n name: 'cluster-link-formatter',\n params: defineParams =>\n defineParams({\n api: kubernetesClusterLinkFormatterApiRef,\n deps: { googleAuthApi: googleAuthApiRef },\n factory: deps => {\n const formatters = getDefaultFormatters(deps);\n return new KubernetesClusterLinkFormatter({\n formatters,\n defaultFormatterName: DEFAULT_FORMATTER_NAME,\n });\n },\n }),\n});\n"],"names":["kubernetesAu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AAM;AACJ,MAAA,MAAM,aAAA,GAAgB;AAAA,QACpB,MAAA,EAAQ,aAAA;AAAA,QACR,MAAA,EAAQ,aAAA;AAAA,QACR,SAAA,EAAW,gBAAA;AAAA,QACX,IAAA,EAAM,WAAA;AAAA,QACN,QAAA,EAAU;AAAA,OACZ;AAEA,MAAA,OAAO,IAAI,uBAAA,CAAwB;AAAA,QACjC,gBAAA;AAAA,QACA,aAAA;AAAA,QACA;AAAA,OACD,CAAA;AAAA,IACH;AAAA,GACD;AACL,CAAC;AAEM,MAAM,iCAAA,GAAoC,aAAa,IAAA,CAAK;AAAA,EACjE,IAAA,EAAM,wBAAA;AAAA,EACN,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,oCAAA;AAAA,IACL,IAAA,EAAM,EAAE,aAAA,EAAe,gBAAA,EAAiB;AAAA,IACxC,SAAS,CAAA,IAAA,KAAQ;AACf,MAAA,MAAM,UAAA,GAAa,qBAAqB,IAAI,CAAA;AAC5C,MAAA,OAAO,IAAI,8BAAA,CAA+B;AAAA,QACxC,UAAA;AAAA,QACA,oBAAA,EAAsB;AAAA,OACvB,CAAA;AAAA,IACH;AAAA,GACD;AACL,CAAC;;;;"}
|
|
@@ -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 { 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 path: '/kubernetes',\n title: 'Kubernetes',\n group: 'deployment',\n filter: isKubernetesAvailable,\n loader: () =>\n import('./KubernetesContentPage').then(m =>\n compatWrapper(<m.KubernetesContentPage />),\n ),\n },\n});\n"],"names":[],"mappings":";;;;;
|
|
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 path: '/kubernetes',\n title: 'Kubernetes',\n group: 'deployment',\n filter: isKubernetesAvailable,\n loader: () =>\n import('./KubernetesContentPage').then(m =>\n compatWrapper(<m.KubernetesContentPage />),\n ),\n },\n});\n"],"names":[],"mappings":";;;;;AAoBO,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;AAAA,MAAK,OACrC,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,qBAAA,EAAF,EAAwB,CAAE;AAAA;AAC3C;AAEN,CAAC;;;;"}
|
|
@@ -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'; // 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 path: '/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":";;;;;
|
|
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 path: '/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":";;;;;AAuBO,MAAM,cAAA,GAAiB,cAAc,IAAA,CAAK;AAAA,EAC/C,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,aAAA;AAAA;AAAA;AAAA,IAGN,QAAA,EAAU,sBAAsB,6BAA6B,CAAA;AAAA;AAAA,IAE7D,MAAA,EAAQ,MAAM,OAAO,kBAAW,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,KAAK,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,MAAA,EAAF,EAAS,CAAE,CAAC;AAAA;AAE3E,CAAC;;;;"}
|
|
@@ -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 { convertLegacyRouteRefs } from '@backstage/core-compat-api';\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: convertLegacyRouteRefs({ kubernetes: rootCatalogKubernetesRouteRef }),\n});\n"],"names":["kubernetesApi"],"mappings":";;;;;;;AA4BA,aAAe,
|
|
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 { convertLegacyRouteRefs } from '@backstage/core-compat-api';\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: convertLegacyRouteRefs({ kubernetes: rootCatalogKubernetesRouteRef }),\n});\n"],"names":["kubernetesApi"],"mappings":";;;;;;;AA4BA,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,sBAAA,CAAuB,EAAE,UAAA,EAAY,+BAA+B;AAC9E,CAAC,CAAA;;;;"}
|
|
@@ -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,
|
|
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;AACJ;AACF;AAEJ,CAAC;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const kubernetesTranslationRef: _backstage_core_plugin_api_alpha.Transla
|
|
|
10
10
|
readonly "kubernetesContentPage.permissionAlert.title": "Permission required";
|
|
11
11
|
}>;
|
|
12
12
|
|
|
13
|
-
declare const _default: _backstage_frontend_plugin_api.
|
|
13
|
+
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
14
14
|
kubernetes: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
15
15
|
}, {}, {
|
|
16
16
|
"api:kubernetes": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
package/dist/package.json.esm.js
CHANGED
package/dist/plugin.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createRouteRef, createPlugin, createApiFactory,
|
|
1
|
+
import { KubernetesBackendClient, kubernetesAuthProvidersApiRef, kubernetesApiRef, KubernetesProxyClient, kubernetesProxyApiRef, KubernetesAuthProviders, kubernetesClusterLinkFormatterApiRef, getDefaultFormatters, KubernetesClusterLinkFormatter, DEFAULT_FORMATTER_NAME } from '@backstage/plugin-kubernetes-react';
|
|
2
|
+
import { createRouteRef, createPlugin, createApiFactory, fetchApiRef, discoveryApiRef, oneloginAuthApiRef, oktaAuthApiRef, microsoftAuthApiRef, googleAuthApiRef, gitlabAuthApiRef, createRoutableExtension } from '@backstage/core-plugin-api';
|
|
3
3
|
|
|
4
4
|
const rootCatalogKubernetesRouteRef = createRouteRef({
|
|
5
5
|
id: "kubernetes"
|
package/dist/plugin.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"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 */\nimport {\n KubernetesBackendClient,\n kubernetesApiRef,\n kubernetesProxyApiRef,\n kubernetesAuthProvidersApiRef,\n KubernetesAuthProviders,\n KubernetesProxyClient,\n kubernetesClusterLinkFormatterApiRef,\n getDefaultFormatters,\n KubernetesClusterLinkFormatter,\n DEFAULT_FORMATTER_NAME,\n} from '@backstage/plugin-kubernetes-react';\nimport {\n createApiFactory,\n createPlugin,\n createRouteRef,\n discoveryApiRef,\n gitlabAuthApiRef,\n googleAuthApiRef,\n microsoftAuthApiRef,\n oktaAuthApiRef,\n oneloginAuthApiRef,\n createRoutableExtension,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\n\nexport const rootCatalogKubernetesRouteRef = createRouteRef({\n id: 'kubernetes',\n});\n\nexport const kubernetesPlugin = createPlugin({\n id: 'kubernetes',\n apis: [\n createApiFactory({\n api: kubernetesApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n kubernetesAuthProvidersApi: kubernetesAuthProvidersApiRef,\n },\n factory: ({ discoveryApi, fetchApi, kubernetesAuthProvidersApi }) =>\n new KubernetesBackendClient({\n discoveryApi,\n fetchApi,\n kubernetesAuthProvidersApi,\n }),\n }),\n createApiFactory({\n api: kubernetesProxyApiRef,\n deps: {\n kubernetesApi: kubernetesApiRef,\n },\n factory: ({ kubernetesApi }) =>\n new KubernetesProxyClient({\n kubernetesApi,\n }),\n }),\n createApiFactory({\n api: kubernetesAuthProvidersApiRef,\n deps: {\n gitlabAuthApi: gitlabAuthApiRef,\n googleAuthApi: googleAuthApiRef,\n microsoftAuthApi: microsoftAuthApiRef,\n oktaAuthApi: oktaAuthApiRef,\n oneloginAuthApi: oneloginAuthApiRef,\n },\n factory: ({\n gitlabAuthApi,\n googleAuthApi,\n microsoftAuthApi,\n oktaAuthApi,\n oneloginAuthApi,\n }) => {\n const oidcProviders = {\n gitlab: gitlabAuthApi,\n google: googleAuthApi,\n microsoft: microsoftAuthApi,\n okta: oktaAuthApi,\n onelogin: oneloginAuthApi,\n };\n\n return new KubernetesAuthProviders({\n microsoftAuthApi,\n googleAuthApi,\n oidcProviders,\n });\n },\n }),\n createApiFactory({\n api: kubernetesClusterLinkFormatterApiRef,\n deps: { googleAuthApi: googleAuthApiRef },\n factory: deps => {\n const formatters = getDefaultFormatters(deps);\n return new KubernetesClusterLinkFormatter({\n formatters,\n defaultFormatterName: DEFAULT_FORMATTER_NAME,\n });\n },\n }),\n ],\n routes: {\n entityContent: rootCatalogKubernetesRouteRef,\n },\n});\n\n/**\n * Props of EntityKubernetesContent\n *\n * @public\n */\nexport type EntityKubernetesContentProps = {\n /**\n * Sets the refresh interval in milliseconds. The default value is 10000 (10 seconds)\n */\n refreshIntervalMs?: number;\n};\n\nexport const EntityKubernetesContent: (\n props: EntityKubernetesContentProps,\n) => JSX.Element = kubernetesPlugin.provide(\n createRoutableExtension({\n name: 'EntityKubernetesContent',\n component: () => import('./Router').then(m => m.Router),\n mountPoint: rootCatalogKubernetesRouteRef,\n }),\n);\n"],"names":[],"mappings":";;;AAyCO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"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 */\nimport {\n KubernetesBackendClient,\n kubernetesApiRef,\n kubernetesProxyApiRef,\n kubernetesAuthProvidersApiRef,\n KubernetesAuthProviders,\n KubernetesProxyClient,\n kubernetesClusterLinkFormatterApiRef,\n getDefaultFormatters,\n KubernetesClusterLinkFormatter,\n DEFAULT_FORMATTER_NAME,\n} from '@backstage/plugin-kubernetes-react';\nimport {\n createApiFactory,\n createPlugin,\n createRouteRef,\n discoveryApiRef,\n gitlabAuthApiRef,\n googleAuthApiRef,\n microsoftAuthApiRef,\n oktaAuthApiRef,\n oneloginAuthApiRef,\n createRoutableExtension,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\n\nexport const rootCatalogKubernetesRouteRef = createRouteRef({\n id: 'kubernetes',\n});\n\nexport const kubernetesPlugin = createPlugin({\n id: 'kubernetes',\n apis: [\n createApiFactory({\n api: kubernetesApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n kubernetesAuthProvidersApi: kubernetesAuthProvidersApiRef,\n },\n factory: ({ discoveryApi, fetchApi, kubernetesAuthProvidersApi }) =>\n new KubernetesBackendClient({\n discoveryApi,\n fetchApi,\n kubernetesAuthProvidersApi,\n }),\n }),\n createApiFactory({\n api: kubernetesProxyApiRef,\n deps: {\n kubernetesApi: kubernetesApiRef,\n },\n factory: ({ kubernetesApi }) =>\n new KubernetesProxyClient({\n kubernetesApi,\n }),\n }),\n createApiFactory({\n api: kubernetesAuthProvidersApiRef,\n deps: {\n gitlabAuthApi: gitlabAuthApiRef,\n googleAuthApi: googleAuthApiRef,\n microsoftAuthApi: microsoftAuthApiRef,\n oktaAuthApi: oktaAuthApiRef,\n oneloginAuthApi: oneloginAuthApiRef,\n },\n factory: ({\n gitlabAuthApi,\n googleAuthApi,\n microsoftAuthApi,\n oktaAuthApi,\n oneloginAuthApi,\n }) => {\n const oidcProviders = {\n gitlab: gitlabAuthApi,\n google: googleAuthApi,\n microsoft: microsoftAuthApi,\n okta: oktaAuthApi,\n onelogin: oneloginAuthApi,\n };\n\n return new KubernetesAuthProviders({\n microsoftAuthApi,\n googleAuthApi,\n oidcProviders,\n });\n },\n }),\n createApiFactory({\n api: kubernetesClusterLinkFormatterApiRef,\n deps: { googleAuthApi: googleAuthApiRef },\n factory: deps => {\n const formatters = getDefaultFormatters(deps);\n return new KubernetesClusterLinkFormatter({\n formatters,\n defaultFormatterName: DEFAULT_FORMATTER_NAME,\n });\n },\n }),\n ],\n routes: {\n entityContent: rootCatalogKubernetesRouteRef,\n },\n});\n\n/**\n * Props of EntityKubernetesContent\n *\n * @public\n */\nexport type EntityKubernetesContentProps = {\n /**\n * Sets the refresh interval in milliseconds. The default value is 10000 (10 seconds)\n */\n refreshIntervalMs?: number;\n};\n\nexport const EntityKubernetesContent: (\n props: EntityKubernetesContentProps,\n) => JSX.Element = kubernetesPlugin.provide(\n createRoutableExtension({\n name: 'EntityKubernetesContent',\n component: () => import('./Router').then(m => m.Router),\n mountPoint: rootCatalogKubernetesRouteRef,\n }),\n);\n"],"names":[],"mappings":";;;AAyCO,MAAM,gCAAgC,cAAA,CAAe;AAAA,EAC1D,EAAA,EAAI;AACN,CAAC;AAEM,MAAM,mBAAmB,YAAA,CAAa;A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UACA,aAAA;AAAA,UACA;AAAA,SACD,CAAA;AAAA,MACH;AAAA,KACD,CAAA;AAAA,IACD,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,oCAAA;AAAA,MACL,IAAA,EAAM,EAAE,aAAA,EAAe,gBAAA,EAAiB;AAAA,MACxC,SAAS,CAAA,IAAA,KAAQ;AACf,QAAA,MAAM,UAAA,GAAa,qBAAqB,IAAI,CAAA;AAC5C,QAAA,OAAO,IAAI,8BAAA,CAA+B;AAAA,UACxC,UAAA;AAAA,UACA,oBAAA,EAAsB;AAAA,SACvB,CAAA;AAAA,MACH;AAAA,KACD;AAAA,GACH;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,aAAA,EAAe;AAAA;AAEnB,CAAC;AAcM,MAAM,0BAEM,gBAAA,CAAiB,OAAA;AAAA,EAClC,uBAAA,CAAwB;AAAA,IACtB,IAAA,EAAM,yBAAA;AAAA,IACN,SAAA,EAAW,MAAM,OAAO,iBAAU,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,MAAM,CAAA;AAAA,IACtD,UAAA,EAAY;AAAA,GACb;AACH;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-kubernetes",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.11-next.0",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards Kubernetes",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@backstage/catalog-model": "1.7.5",
|
|
74
|
-
"@backstage/core-compat-api": "0.5.
|
|
75
|
-
"@backstage/core-components": "0.17.5
|
|
74
|
+
"@backstage/core-compat-api": "0.5.2-next.0",
|
|
75
|
+
"@backstage/core-components": "0.17.5",
|
|
76
76
|
"@backstage/core-plugin-api": "1.10.9",
|
|
77
|
-
"@backstage/frontend-plugin-api": "0.11.0
|
|
78
|
-
"@backstage/plugin-catalog-react": "1.20.
|
|
77
|
+
"@backstage/frontend-plugin-api": "0.11.0",
|
|
78
|
+
"@backstage/plugin-catalog-react": "1.20.2-next.0",
|
|
79
79
|
"@backstage/plugin-kubernetes-common": "0.9.6",
|
|
80
|
-
"@backstage/plugin-kubernetes-react": "0.5.10
|
|
80
|
+
"@backstage/plugin-kubernetes-react": "0.5.10",
|
|
81
81
|
"@backstage/plugin-permission-react": "0.4.36",
|
|
82
82
|
"@kubernetes-models/apimachinery": "^2.0.0",
|
|
83
83
|
"@kubernetes-models/base": "^5.0.0",
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
"luxon": "^3.0.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@backstage/cli": "0.34.
|
|
97
|
-
"@backstage/dev-utils": "1.1.
|
|
98
|
-
"@backstage/test-utils": "1.7.11
|
|
96
|
+
"@backstage/cli": "0.34.1-next.0",
|
|
97
|
+
"@backstage/dev-utils": "1.1.14-next.0",
|
|
98
|
+
"@backstage/test-utils": "1.7.11",
|
|
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",
|