@backstage/plugin-kubernetes 0.12.17-next.2 → 0.12.17

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,20 @@
1
1
  # @backstage/plugin-kubernetes
2
2
 
3
+ ## 0.12.17
4
+
5
+ ### Patch Changes
6
+
7
+ - 538c985: Updated installation documentation to use feature discovery as the default.
8
+ - 0be2541: Promoted the plugin's translation ref to the stable package entry point. It was previously only available through the alpha entry point.
9
+ - Updated dependencies
10
+ - @backstage/plugin-catalog-react@2.1.0
11
+ - @backstage/core-plugin-api@1.12.4
12
+ - @backstage/core-components@0.18.8
13
+ - @backstage/frontend-plugin-api@0.15.0
14
+ - @backstage/plugin-permission-react@0.4.41
15
+ - @backstage/plugin-kubernetes-react@0.5.17
16
+ - @backstage/catalog-model@1.7.7
17
+
3
18
  ## 0.12.17-next.2
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -8,15 +8,20 @@ It will elevate the visibility of errors where identified, and provide drill dow
8
8
 
9
9
  It directly interfaces with the [Kubernetes Backend Plugin (`@backstage-plugin-kubernetes-backend`)](https://github.com/backstage/backstage/tree/master/plugins/kubernetes-backend).
10
10
 
11
- _This plugin was created through the Backstage CLI_
12
-
13
11
  ## Introduction
14
12
 
15
13
  See our announcement blog post [New Backstage feature: Kubernetes for Service Owners](https://backstage.io/blog/2021/01/12/new-backstage-feature-kubernetes-for-service-owners) to learn more about the motivation behind developing the plugin.
16
14
 
17
15
  ## Setup & Configuration
18
16
 
19
- This plugin must be explicitly added to a Backstage app, along with it's peer backend plugin.
17
+ This plugin must be installed in a Backstage app, along with its peer backend plugin.
18
+
19
+ ```bash
20
+ # From your Backstage root directory
21
+ yarn --cwd packages/app add @backstage/plugin-kubernetes
22
+ ```
23
+
24
+ Once installed, the plugin is automatically available in your app through the default feature discovery. For more details and alternative installation methods, see [installing plugins](https://backstage.io/docs/frontend-system/building-apps/installing-plugins).
20
25
 
21
26
  It requires configuration in the Backstage `app-config.yaml` to connect to a Kubernetes API control plane.
22
27
 
@@ -24,35 +29,9 @@ In addition, configuration of an entity's `catalog-info.yaml` helps identify whi
24
29
 
25
30
  For more information, see the [formal documentation about the Kubernetes feature in Backstage](https://backstage.io/docs/features/kubernetes/overview).
26
31
 
27
- ## Getting started
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/catalog/default/component/:component-name/kubernetes).
30
-
31
- You can also serve the plugin in isolation by running `yarn start` in the plugin directory.
32
- This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads.
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/).
32
+ ### Enabling the entity content tab
38
33
 
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`.
34
+ Enable the Kubernetes entity content extension in your `app-config.yaml`:
56
35
 
57
36
  ```yaml
58
37
  app:
@@ -77,3 +56,11 @@ app:
77
56
  - resource
78
57
  - system
79
58
  ```
59
+
60
+ ## Getting started
61
+
62
+ 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).
63
+
64
+ You can also serve the plugin in isolation by running `yarn start` in the plugin directory.
65
+ This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads.
66
+ It is only meant for local development, and the setup for it can be found inside the [/dev](./dev) directory.
@@ -0,0 +1,7 @@
1
+ import { kubernetesTranslationRef as kubernetesTranslationRef$1 } from './translation.esm.js';
2
+ export { default } from './plugin.esm.js';
3
+
4
+ const kubernetesTranslationRef = kubernetesTranslationRef$1;
5
+
6
+ export { kubernetesTranslationRef };
7
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../src/alpha/index.ts"],"sourcesContent":["/*\n * Copyright 2023 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 { kubernetesTranslationRef as _kubernetesTranslationRef } from './translation';\n\n/**\n * @alpha\n * @deprecated Import from `@backstage/plugin-kubernetes` instead.\n */\nexport const kubernetesTranslationRef = _kubernetesTranslationRef;\nexport { default } from './plugin';\n"],"names":["_kubernetesTranslationRef"],"mappings":";;;AAqBO,MAAM,wBAAA,GAA2BA;;;;"}
@@ -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 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;;;;"}
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/** @public */\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
@@ -5,16 +5,6 @@ import * as react from 'react';
5
5
  import * as _backstage_filter_predicates from '@backstage/filter-predicates';
6
6
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
7
7
 
8
- /** @alpha */
9
- declare const kubernetesTranslationRef: _backstage_frontend_plugin_api.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}}";
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.";
15
- readonly "kubernetesContentPage.permissionAlert.title": "Permission required";
16
- }>;
17
-
18
8
  declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
19
9
  kubernetes: _backstage_core_plugin_api.RouteRef<undefined>;
20
10
  }, {}, {
@@ -138,4 +128,17 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
138
128
  }>;
139
129
  }>;
140
130
 
131
+ /**
132
+ * @alpha
133
+ * @deprecated Import from `@backstage/plugin-kubernetes` instead.
134
+ */
135
+ declare const kubernetesTranslationRef: _backstage_frontend_plugin_api.TranslationRef<"kubernetes", {
136
+ readonly "entityContent.title": "Kubernetes";
137
+ readonly "kubernetesContentPage.title": "Your Clusters";
138
+ readonly "kubernetesContentPage.emptyState.title": "No Kubernetes resources";
139
+ readonly "kubernetesContentPage.emptyState.description": "No resources on any known clusters for {{entityName}}";
140
+ readonly "kubernetesContentPage.permissionAlert.message": "To view Kubernetes objects, contact your portal administrator to give you the 'kubernetes.clusters.read' and 'kubernetes.resources.read' permission.";
141
+ readonly "kubernetesContentPage.permissionAlert.title": "Permission required";
142
+ }>;
143
+
141
144
  export { _default as default, kubernetesTranslationRef };
package/dist/alpha.esm.js CHANGED
@@ -1,3 +1,3 @@
1
- export { kubernetesTranslationRef } from './alpha/translation.esm.js';
1
+ export { kubernetesTranslationRef } from './alpha/index.esm.js';
2
2
  export { default } from './alpha/plugin.esm.js';
3
3
  //# sourceMappingURL=alpha.esm.js.map
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { Entity } from '@backstage/catalog-model';
4
4
  export * from '@backstage/plugin-kubernetes-react';
5
+ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
5
6
 
6
7
  declare const kubernetesPlugin: _backstage_core_plugin_api.BackstagePlugin<{
7
8
  entityContent: _backstage_core_plugin_api.RouteRef<undefined>;
@@ -24,5 +25,15 @@ declare const Router: (props: {
24
25
  refreshIntervalMs?: number;
25
26
  }) => react_jsx_runtime.JSX.Element;
26
27
 
27
- export { EntityKubernetesContent, Router, isKubernetesAvailable, kubernetesPlugin, kubernetesPlugin as plugin };
28
+ /** @public */
29
+ declare const kubernetesTranslationRef: _backstage_frontend_plugin_api.TranslationRef<"kubernetes", {
30
+ readonly "entityContent.title": "Kubernetes";
31
+ readonly "kubernetesContentPage.title": "Your Clusters";
32
+ readonly "kubernetesContentPage.emptyState.title": "No Kubernetes resources";
33
+ readonly "kubernetesContentPage.emptyState.description": "No resources on any known clusters for {{entityName}}";
34
+ readonly "kubernetesContentPage.permissionAlert.message": "To view Kubernetes objects, contact your portal administrator to give you the 'kubernetes.clusters.read' and 'kubernetes.resources.read' permission.";
35
+ readonly "kubernetesContentPage.permissionAlert.title": "Permission required";
36
+ }>;
37
+
38
+ export { EntityKubernetesContent, Router, isKubernetesAvailable, kubernetesPlugin, kubernetesTranslationRef, kubernetesPlugin as plugin };
28
39
  export type { EntityKubernetesContentProps };
package/dist/index.esm.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { EntityKubernetesContent, kubernetesPlugin, kubernetesPlugin as plugin } from './plugin.esm.js';
2
2
  export { Router, isKubernetesAvailable } from './Router.esm.js';
3
3
  export * from '@backstage/plugin-kubernetes-react';
4
+ export { kubernetesTranslationRef } from './alpha/translation.esm.js';
4
5
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-kubernetes";
2
- var version = "0.12.17-next.2";
2
+ var version = "0.12.17";
3
3
  var description = "A Backstage plugin that integrates towards Kubernetes";
4
4
  var backstage = {
5
5
  role: "frontend-plugin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-kubernetes",
3
- "version": "0.12.17-next.2",
3
+ "version": "0.12.17",
4
4
  "description": "A Backstage plugin that integrates towards Kubernetes",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -70,20 +70,20 @@
70
70
  "test": "backstage-cli package test"
71
71
  },
72
72
  "dependencies": {
73
- "@backstage/catalog-model": "1.7.6",
74
- "@backstage/core-components": "0.18.8-next.1",
75
- "@backstage/core-plugin-api": "1.12.4-next.1",
76
- "@backstage/frontend-plugin-api": "0.15.0-next.1",
77
- "@backstage/plugin-catalog-react": "2.1.0-next.2",
78
- "@backstage/plugin-kubernetes-common": "0.9.10",
79
- "@backstage/plugin-kubernetes-react": "0.5.17-next.0",
80
- "@backstage/plugin-permission-react": "0.4.41-next.0",
73
+ "@backstage/catalog-model": "^1.7.7",
74
+ "@backstage/core-components": "^0.18.8",
75
+ "@backstage/core-plugin-api": "^1.12.4",
76
+ "@backstage/frontend-plugin-api": "^0.15.0",
77
+ "@backstage/plugin-catalog-react": "^2.1.0",
78
+ "@backstage/plugin-kubernetes-common": "^0.9.10",
79
+ "@backstage/plugin-kubernetes-react": "^0.5.17",
80
+ "@backstage/plugin-permission-react": "^0.4.41",
81
81
  "@material-ui/core": "^4.12.2"
82
82
  },
83
83
  "devDependencies": {
84
- "@backstage/cli": "0.36.0-next.2",
85
- "@backstage/dev-utils": "1.1.21-next.1",
86
- "@backstage/test-utils": "1.7.16-next.0",
84
+ "@backstage/cli": "^0.36.0",
85
+ "@backstage/dev-utils": "^1.1.21",
86
+ "@backstage/test-utils": "^1.7.16",
87
87
  "@testing-library/dom": "^10.0.0",
88
88
  "@testing-library/jest-dom": "^6.0.0",
89
89
  "@testing-library/react": "^16.0.0",