@backstage/plugin-kubernetes 0.11.12 → 0.11.13-next.1

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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # @backstage/plugin-kubernetes
2
2
 
3
+ ## 0.11.13-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e6c15cc: Adds support for Backstage's new frontend system, available via the `/alpha` sub-path export.
8
+ - Updated dependencies
9
+ - @backstage/plugin-catalog-react@1.12.3-next.1
10
+ - @backstage/frontend-plugin-api@0.6.8-next.1
11
+ - @backstage/core-compat-api@0.2.8-next.1
12
+ - @backstage/plugin-kubernetes-common@0.8.2-next.0
13
+ - @backstage/catalog-model@1.5.0
14
+ - @backstage/core-components@0.14.10-next.0
15
+ - @backstage/core-plugin-api@1.9.3
16
+ - @backstage/plugin-kubernetes-react@0.4.2-next.1
17
+
18
+ ## 0.11.13-next.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+ - @backstage/plugin-catalog-react@1.12.3-next.0
24
+ - @backstage/core-components@0.14.10-next.0
25
+ - @backstage/catalog-model@1.5.0
26
+ - @backstage/core-plugin-api@1.9.3
27
+ - @backstage/plugin-kubernetes-common@0.8.1
28
+ - @backstage/plugin-kubernetes-react@0.4.2-next.0
29
+
3
30
  ## 0.11.12
4
31
 
5
32
  ### Patch Changes
package/README.md CHANGED
@@ -26,8 +26,38 @@ For more information, see the [formal documentation about the Kubernetes feature
26
26
 
27
27
  ## Getting started
28
28
 
29
- Your plugin has been added to the example app in this repository, meaning you'll be able to access it by running `yarn start` in the root directory, and then navigating to [/kubernetes](http://localhost:3000/kubernetes).
29
+ Your plugin has been added to the example app in this repository, meaning you'll be able to access it by running `yarn start` in the root directory, and then navigating to [/kubernetes](http://localhost:3000/catalog/default/component/:component-name/kubernetes).
30
30
 
31
31
  You can also serve the plugin in isolation by running `yarn start` in the plugin directory.
32
32
  This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads.
33
33
  It is only meant for local development, and the setup for it can be found inside the [/dev](./dev) directory.
34
+
35
+ ### Integrating with `EntityPage` (New Frontend System)
36
+
37
+ Follow this section if you are using Backstage's [new frontend system](https://backstage.io/docs/frontend-system/).
38
+
39
+ 1. Import `kubernetesPlugin` in your `App.tsx` and add it to your app's `features` array:
40
+
41
+ ```typescript
42
+ import kubernetesPlugin from '@backstage/plugin-kubernetes/alpha';
43
+
44
+ // ...
45
+
46
+ export const app = createApp({
47
+ features: [
48
+ // ...
49
+ kubernetesPlugin,
50
+ // ...
51
+ ],
52
+ });
53
+ ```
54
+
55
+ 2. Next, enable your desired extensions in `app-config.yaml`
56
+
57
+ ```yaml
58
+ app:
59
+ extensions:
60
+ - entity-content:kubernetes/kubernetes
61
+ ```
62
+
63
+ Now, the extension appears on your entity page as one of the tabs, which is called `KUBERNETES`
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@backstage/plugin-kubernetes__alpha",
3
+ "version": "0.11.13-next.1",
4
+ "main": "../dist/alpha.esm.js",
5
+ "module": "../dist/alpha.esm.js",
6
+ "types": "../dist/alpha.d.ts"
7
+ }
@@ -0,0 +1,11 @@
1
+ import { useEntity } from '@backstage/plugin-catalog-react';
2
+ import { KubernetesContent } from '../KubernetesContent.esm.js';
3
+ import React from 'react';
4
+
5
+ function KubernetesContentPage() {
6
+ const { entity } = useEntity();
7
+ return /* @__PURE__ */ React.createElement(KubernetesContent, { entity });
8
+ }
9
+
10
+ export { KubernetesContentPage };
11
+ //# sourceMappingURL=KubernetesContentPage.esm.js.map
@@ -0,0 +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';\nimport React from 'react';\n\nexport function KubernetesContentPage() {\n const { entity } = useEntity();\n return <KubernetesContent entity={entity} />;\n}\n"],"names":[],"mappings":";;;;AAoBO,SAAS,qBAAwB,GAAA;AACtC,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA,CAAA;AAC7B,EAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,qBAAkB,MAAgB,EAAA,CAAA,CAAA;AAC5C;;;;"}
@@ -0,0 +1,78 @@
1
+ import { createApiExtension, createApiFactory, discoveryApiRef, fetchApiRef } from '@backstage/frontend-plugin-api';
2
+ import { kubernetesApiRef, kubernetesAuthProvidersApiRef, KubernetesBackendClient, kubernetesProxyApiRef, KubernetesProxyClient, KubernetesAuthProviders, kubernetesClusterLinkFormatterApiRef, getDefaultFormatters, KubernetesClusterLinkFormatter, DEFAULT_FORMATTER_NAME } from '@backstage/plugin-kubernetes-react';
3
+ import { gitlabAuthApiRef, googleAuthApiRef, microsoftAuthApiRef, oktaAuthApiRef, oneloginAuthApiRef } from '@backstage/core-plugin-api';
4
+
5
+ const kubernetesApiExtension = createApiExtension({
6
+ factory: createApiFactory({
7
+ api: kubernetesApiRef,
8
+ deps: {
9
+ discoveryApi: discoveryApiRef,
10
+ fetchApi: fetchApiRef,
11
+ kubernetesAuthProvidersApi: kubernetesAuthProvidersApiRef
12
+ },
13
+ factory: ({ discoveryApi, fetchApi, kubernetesAuthProvidersApi: kubernetesAuthProvidersApi2 }) => new KubernetesBackendClient({
14
+ discoveryApi,
15
+ fetchApi,
16
+ kubernetesAuthProvidersApi: kubernetesAuthProvidersApi2
17
+ })
18
+ })
19
+ });
20
+ const kubernetesProxyApi = createApiExtension({
21
+ factory: createApiFactory({
22
+ api: kubernetesProxyApiRef,
23
+ deps: {
24
+ kubernetesApi: kubernetesApiRef
25
+ },
26
+ factory: ({ kubernetesApi }) => new KubernetesProxyClient({
27
+ kubernetesApi
28
+ })
29
+ })
30
+ });
31
+ const kubernetesAuthProvidersApi = createApiExtension({
32
+ factory: createApiFactory({
33
+ api: kubernetesAuthProvidersApiRef,
34
+ deps: {
35
+ gitlabAuthApi: gitlabAuthApiRef,
36
+ googleAuthApi: googleAuthApiRef,
37
+ microsoftAuthApi: microsoftAuthApiRef,
38
+ oktaAuthApi: oktaAuthApiRef,
39
+ oneloginAuthApi: oneloginAuthApiRef
40
+ },
41
+ factory: ({
42
+ gitlabAuthApi,
43
+ googleAuthApi,
44
+ microsoftAuthApi,
45
+ oktaAuthApi,
46
+ oneloginAuthApi
47
+ }) => {
48
+ const oidcProviders = {
49
+ gitlab: gitlabAuthApi,
50
+ google: googleAuthApi,
51
+ microsoft: microsoftAuthApi,
52
+ okta: oktaAuthApi,
53
+ onelogin: oneloginAuthApi
54
+ };
55
+ return new KubernetesAuthProviders({
56
+ microsoftAuthApi,
57
+ googleAuthApi,
58
+ oidcProviders
59
+ });
60
+ }
61
+ })
62
+ });
63
+ const kubernetesClusterLinkFormatterApi = createApiExtension({
64
+ factory: createApiFactory({
65
+ api: kubernetesClusterLinkFormatterApiRef,
66
+ deps: { googleAuthApi: googleAuthApiRef },
67
+ factory: (deps) => {
68
+ const formatters = getDefaultFormatters(deps);
69
+ return new KubernetesClusterLinkFormatter({
70
+ formatters,
71
+ defaultFormatterName: DEFAULT_FORMATTER_NAME
72
+ });
73
+ }
74
+ })
75
+ });
76
+
77
+ export { kubernetesApiExtension, kubernetesAuthProvidersApi, kubernetesClusterLinkFormatterApi, kubernetesProxyApi };
78
+ //# sourceMappingURL=apis.esm.js.map
@@ -0,0 +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 createApiExtension,\n createApiFactory,\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 = createApiExtension({\n factory: 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});\n\nexport const kubernetesProxyApi = createApiExtension({\n factory: createApiFactory({\n api: kubernetesProxyApiRef,\n deps: {\n kubernetesApi: kubernetesApiRef,\n },\n factory: ({ kubernetesApi }) =>\n new KubernetesProxyClient({\n kubernetesApi,\n }),\n }),\n});\n\nexport const kubernetesAuthProvidersApi = createApiExtension({\n factory: 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});\n\nexport const kubernetesClusterLinkFormatterApi = createApiExtension({\n factory: 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"],"names":["kubernetesAuthProvidersApi"],"mappings":";;;;AA0CO,MAAM,yBAAyB,kBAAmB,CAAA;AAAA,EACvD,SAAS,gBAAiB,CAAA;AAAA,IACxB,GAAK,EAAA,gBAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,QAAU,EAAA,WAAA;AAAA,MACV,0BAA4B,EAAA,6BAAA;AAAA,KAC9B;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,UAAU,0BAAAA,EAAAA,2BAAAA,EAClC,KAAA,IAAI,uBAAwB,CAAA;AAAA,MAC1B,YAAA;AAAA,MACA,QAAA;AAAA,MACA,0BAAAA,EAAAA,2BAAAA;AAAA,KACD,CAAA;AAAA,GACJ,CAAA;AACH,CAAC,EAAA;AAEM,MAAM,qBAAqB,kBAAmB,CAAA;AAAA,EACnD,SAAS,gBAAiB,CAAA;AAAA,IACxB,GAAK,EAAA,qBAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,aAAe,EAAA,gBAAA;AAAA,KACjB;AAAA,IACA,SAAS,CAAC,EAAE,aAAc,EAAA,KACxB,IAAI,qBAAsB,CAAA;AAAA,MACxB,aAAA;AAAA,KACD,CAAA;AAAA,GACJ,CAAA;AACH,CAAC,EAAA;AAEM,MAAM,6BAA6B,kBAAmB,CAAA;AAAA,EAC3D,SAAS,gBAAiB,CAAA;AAAA,IACxB,GAAK,EAAA,6BAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,aAAe,EAAA,gBAAA;AAAA,MACf,aAAe,EAAA,gBAAA;AAAA,MACf,gBAAkB,EAAA,mBAAA;AAAA,MAClB,WAAa,EAAA,cAAA;AAAA,MACb,eAAiB,EAAA,kBAAA;AAAA,KACnB;AAAA,IACA,SAAS,CAAC;AAAA,MACR,aAAA;AAAA,MACA,aAAA;AAAA,MACA,gBAAA;AAAA,MACA,WAAA;AAAA,MACA,eAAA;AAAA,KACI,KAAA;AACJ,MAAA,MAAM,aAAgB,GAAA;AAAA,QACpB,MAAQ,EAAA,aAAA;AAAA,QACR,MAAQ,EAAA,aAAA;AAAA,QACR,SAAW,EAAA,gBAAA;AAAA,QACX,IAAM,EAAA,WAAA;AAAA,QACN,QAAU,EAAA,eAAA;AAAA,OACZ,CAAA;AAEA,MAAA,OAAO,IAAI,uBAAwB,CAAA;AAAA,QACjC,gBAAA;AAAA,QACA,aAAA;AAAA,QACA,aAAA;AAAA,OACD,CAAA,CAAA;AAAA,KACH;AAAA,GACD,CAAA;AACH,CAAC,EAAA;AAEM,MAAM,oCAAoC,kBAAmB,CAAA;AAAA,EAClE,SAAS,gBAAiB,CAAA;AAAA,IACxB,GAAK,EAAA,oCAAA;AAAA,IACL,IAAA,EAAM,EAAE,aAAA,EAAe,gBAAiB,EAAA;AAAA,IACxC,SAAS,CAAQ,IAAA,KAAA;AACf,MAAM,MAAA,UAAA,GAAa,qBAAqB,IAAI,CAAA,CAAA;AAC5C,MAAA,OAAO,IAAI,8BAA+B,CAAA;AAAA,QACxC,UAAA;AAAA,QACA,oBAAsB,EAAA,sBAAA;AAAA,OACvB,CAAA,CAAA;AAAA,KACH;AAAA,GACD,CAAA;AACH,CAAC;;;;"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
3
+ import { createEntityContentExtension } from '@backstage/plugin-catalog-react/alpha';
4
+ import { rootCatalogKubernetesRouteRef } from '../plugin.esm.js';
5
+
6
+ const entityKubernetesContent = createEntityContentExtension({
7
+ defaultPath: "kubernetes",
8
+ defaultTitle: "Kubernetes",
9
+ name: "kubernetes",
10
+ routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),
11
+ loader: () => import('./KubernetesContentPage.esm.js').then(
12
+ (m) => compatWrapper(/* @__PURE__ */ React.createElement(m.KubernetesContentPage, null))
13
+ )
14
+ });
15
+
16
+ export { entityKubernetesContent };
17
+ //# sourceMappingURL=entityContents.esm.js.map
@@ -0,0 +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 React from 'react';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { createEntityContentExtension } from '@backstage/plugin-catalog-react/alpha';\nimport { rootCatalogKubernetesRouteRef } from '../plugin';\n\nexport const entityKubernetesContent = createEntityContentExtension({\n defaultPath: 'kubernetes',\n defaultTitle: 'Kubernetes',\n name: 'kubernetes',\n routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),\n loader: () =>\n import('./KubernetesContentPage').then(m =>\n compatWrapper(<m.KubernetesContentPage />),\n ),\n});\n"],"names":[],"mappings":";;;;;AAwBO,MAAM,0BAA0B,4BAA6B,CAAA;AAAA,EAClE,WAAa,EAAA,YAAA;AAAA,EACb,YAAc,EAAA,YAAA;AAAA,EACd,IAAM,EAAA,YAAA;AAAA,EACN,QAAA,EAAU,sBAAsB,6BAA6B,CAAA;AAAA,EAC7D,MAAQ,EAAA,MACN,OAAO,gCAAyB,CAAE,CAAA,IAAA;AAAA,IAAK,OACrC,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,qBAAA,EAAF,IAAwB,CAAE,CAAA;AAAA,GAC3C;AACJ,CAAC;;;;"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { createPageExtension } from '@backstage/frontend-plugin-api';
3
+ import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
4
+ import { rootCatalogKubernetesRouteRef } from '../plugin.esm.js';
5
+
6
+ const kubernetesPage = createPageExtension({
7
+ defaultPath: "/kubernetes",
8
+ // you can reuse the existing routeRef
9
+ // by wrapping into the convertLegacyRouteRef.
10
+ routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),
11
+ // these inputs usually match the props required by the component.
12
+ loader: () => import('../Router.esm.js').then((m) => compatWrapper(/* @__PURE__ */ React.createElement(m.Router, null)))
13
+ });
14
+
15
+ export { kubernetesPage };
16
+ //# sourceMappingURL=pages.esm.js.map
@@ -0,0 +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 React from 'react'; // Add this line to import React\n\nimport { createPageExtension } from '@backstage/frontend-plugin-api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { rootCatalogKubernetesRouteRef } from '../plugin';\n\nexport const kubernetesPage = createPageExtension({\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"],"names":[],"mappings":";;;;;AAyBO,MAAM,iBAAiB,mBAAoB,CAAA;AAAA,EAChD,WAAa,EAAA,aAAA;AAAA;AAAA;AAAA,EAGb,QAAA,EAAU,sBAAsB,6BAA6B,CAAA;AAAA;AAAA,EAE7D,MAAQ,EAAA,MAAM,OAAO,kBAAW,CAAE,CAAA,IAAA,CAAK,CAAK,CAAA,KAAA,aAAA,iBAAe,KAAA,CAAA,aAAA,CAAA,CAAA,CAAE,MAAF,EAAA,IAAS,CAAE,CAAC,CAAA;AACzE,CAAC;;;;"}
@@ -0,0 +1,22 @@
1
+ import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
2
+ import { createPlugin } from '@backstage/frontend-plugin-api';
3
+ import { kubernetesPage } from './pages.esm.js';
4
+ import { entityKubernetesContent } from './entityContents.esm.js';
5
+ import { rootCatalogKubernetesRouteRef } from '../plugin.esm.js';
6
+ import { kubernetesApiExtension, kubernetesProxyApi, kubernetesAuthProvidersApi, kubernetesClusterLinkFormatterApi } from './apis.esm.js';
7
+
8
+ var plugin = createPlugin({
9
+ id: "kubernetes",
10
+ extensions: [
11
+ kubernetesPage,
12
+ entityKubernetesContent,
13
+ kubernetesApiExtension,
14
+ kubernetesProxyApi,
15
+ kubernetesAuthProvidersApi,
16
+ kubernetesClusterLinkFormatterApi
17
+ ],
18
+ routes: convertLegacyRouteRefs({ kubernetes: rootCatalogKubernetesRouteRef })
19
+ });
20
+
21
+ export { plugin as default };
22
+ //# sourceMappingURL=plugin.esm.js.map
@@ -0,0 +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 { createPlugin } 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 createPlugin({\n id: 'kubernetes',\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,YAAa,CAAA;AAAA,EAC1B,EAAI,EAAA,YAAA;AAAA,EACJ,UAAY,EAAA;AAAA,IACV,cAAA;AAAA,IACA,uBAAA;AAAA,IACAA,sBAAA;AAAA,IACA,kBAAA;AAAA,IACA,0BAAA;AAAA,IACA,iCAAA;AAAA,GACF;AAAA,EACA,MAAQ,EAAA,sBAAA,CAAuB,EAAE,UAAA,EAAY,+BAA+B,CAAA;AAC9E,CAAC,CAAA;;;;"}
@@ -0,0 +1,7 @@
1
+ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
2
+
3
+ declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{
4
+ kubernetes: _backstage_frontend_plugin_api.RouteRef<undefined>;
5
+ }, {}>;
6
+
7
+ export { _default as default };
@@ -0,0 +1,2 @@
1
+ export { default } from './alpha/plugin.esm.js';
2
+ //# sourceMappingURL=alpha.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alpha.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.11.12",
3
+ "version": "0.11.13-next.1",
4
4
  "description": "A Backstage plugin that integrates towards Kubernetes",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -14,9 +14,7 @@
14
14
  ]
15
15
  },
16
16
  "publishConfig": {
17
- "access": "public",
18
- "main": "dist/index.esm.js",
19
- "types": "dist/index.d.ts"
17
+ "access": "public"
20
18
  },
21
19
  "keywords": [
22
20
  "backstage",
@@ -30,10 +28,24 @@
30
28
  },
31
29
  "license": "Apache-2.0",
32
30
  "sideEffects": false,
33
- "main": "dist/index.esm.js",
34
- "types": "dist/index.d.ts",
31
+ "exports": {
32
+ ".": {
33
+ "import": "./dist/index.esm.js",
34
+ "types": "./dist/index.d.ts",
35
+ "default": "./dist/index.esm.js"
36
+ },
37
+ "./alpha": {
38
+ "import": "./dist/alpha.esm.js",
39
+ "types": "./dist/alpha.d.ts",
40
+ "default": "./dist/alpha.esm.js"
41
+ },
42
+ "./package.json": "./package.json"
43
+ },
44
+ "main": "./dist/index.esm.js",
45
+ "types": "./dist/index.d.ts",
35
46
  "files": [
36
- "dist"
47
+ "dist",
48
+ "alpha"
37
49
  ],
38
50
  "scripts": {
39
51
  "build": "backstage-cli package build",
@@ -46,11 +58,13 @@
46
58
  },
47
59
  "dependencies": {
48
60
  "@backstage/catalog-model": "^1.5.0",
49
- "@backstage/core-components": "^0.14.9",
61
+ "@backstage/core-compat-api": "^0.2.8-next.1",
62
+ "@backstage/core-components": "^0.14.10-next.0",
50
63
  "@backstage/core-plugin-api": "^1.9.3",
51
- "@backstage/plugin-catalog-react": "^1.12.2",
52
- "@backstage/plugin-kubernetes-common": "^0.8.1",
53
- "@backstage/plugin-kubernetes-react": "^0.4.1",
64
+ "@backstage/frontend-plugin-api": "^0.6.8-next.1",
65
+ "@backstage/plugin-catalog-react": "^1.12.3-next.1",
66
+ "@backstage/plugin-kubernetes-common": "^0.8.2-next.0",
67
+ "@backstage/plugin-kubernetes-react": "^0.4.2-next.1",
54
68
  "@kubernetes-models/apimachinery": "^1.1.0",
55
69
  "@kubernetes-models/base": "^4.0.1",
56
70
  "@kubernetes/client-node": "0.20.0",
@@ -66,9 +80,9 @@
66
80
  "xterm-addon-fit": "^0.8.0"
67
81
  },
68
82
  "devDependencies": {
69
- "@backstage/cli": "^0.26.11",
70
- "@backstage/dev-utils": "^1.0.35",
71
- "@backstage/test-utils": "^1.5.8",
83
+ "@backstage/cli": "^0.27.0-next.1",
84
+ "@backstage/dev-utils": "^1.0.37-next.1",
85
+ "@backstage/test-utils": "^1.5.10-next.1",
72
86
  "@testing-library/dom": "^10.0.0",
73
87
  "@testing-library/jest-dom": "^6.0.0",
74
88
  "@testing-library/react": "^15.0.0"