@backstage/plugin-kubernetes-react 0.1.1-next.2 → 0.1.2-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 CHANGED
@@ -1,5 +1,38 @@
1
1
  # @backstage/plugin-kubernetes-react
2
2
 
3
+ ## 0.1.2-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - b5ae2e5a62: Add ID property to the table displaying kubernetes pods to avoid closing the info sidebar when the data reloads and needs to rerender.
8
+ - 706fc3a7e1: Updated dependency `@kubernetes/client-node` to `0.20.0`.
9
+ - Updated dependencies
10
+ - @backstage/core-plugin-api@1.8.1-next.0
11
+ - @backstage/core-components@0.13.9-next.0
12
+ - @backstage/plugin-kubernetes-common@0.7.2-next.0
13
+ - @backstage/catalog-model@1.4.3
14
+ - @backstage/errors@1.2.3
15
+ - @backstage/types@1.1.1
16
+
17
+ ## 0.1.1
18
+
19
+ ### Patch Changes
20
+
21
+ - 0f4cad6da0: Internal refactor to avoid a null pointer problem
22
+ - 6c2b872153: Add official support for React 18.
23
+ - b52f576f48: Make sure types exported by other `kubernetes` plugins in the past are exported again after the creation
24
+ of the react package.
25
+
26
+ Some types have been moved to this new package but the export was missing, so they were not available anymore for developers.
27
+
28
+ - Updated dependencies
29
+ - @backstage/core-components@0.13.8
30
+ - @backstage/plugin-kubernetes-common@0.7.1
31
+ - @backstage/core-plugin-api@1.8.0
32
+ - @backstage/catalog-model@1.4.3
33
+ - @backstage/errors@1.2.3
34
+ - @backstage/types@1.1.1
35
+
3
36
  ## 0.1.1-next.2
4
37
 
5
38
  ### Patch Changes
package/dist/index.esm.js CHANGED
@@ -2011,6 +2011,11 @@ const Memory = ({ clusterName, pod }) => {
2011
2011
  const PodsTable = ({ pods, extraColumns = [] }) => {
2012
2012
  const cluster = useContext(ClusterContext);
2013
2013
  const defaultColumns = [
2014
+ {
2015
+ title: "ID",
2016
+ field: "metadata.uid",
2017
+ hidden: true
2018
+ },
2014
2019
  {
2015
2020
  title: "name",
2016
2021
  highlight: true,
@@ -2062,7 +2067,13 @@ const PodsTable = ({ pods, extraColumns = [] }) => {
2062
2067
  Table,
2063
2068
  {
2064
2069
  options: { paging: true, search: false, emptyRowsWhenPaging: false },
2065
- data: pods,
2070
+ data: pods.map((pod) => {
2071
+ var _a;
2072
+ return {
2073
+ ...pod,
2074
+ id: (_a = pod == null ? void 0 : pod.metadata) == null ? void 0 : _a.uid
2075
+ };
2076
+ }),
2066
2077
  columns
2067
2078
  }
2068
2079
  ));