@backstage/plugin-kubernetes-react 0.1.1 → 0.1.2-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,31 @@
1
1
  # @backstage/plugin-kubernetes-react
2
2
 
3
+ ## 0.1.2-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/core-components@0.13.9-next.1
9
+ - @backstage/core-plugin-api@1.8.1-next.1
10
+ - @backstage/plugin-kubernetes-common@0.7.2-next.1
11
+ - @backstage/catalog-model@1.4.3
12
+ - @backstage/errors@1.2.3
13
+ - @backstage/types@1.1.1
14
+
15
+ ## 0.1.2-next.0
16
+
17
+ ### Patch Changes
18
+
19
+ - b5ae2e5a62: Add ID property to the table displaying kubernetes pods to avoid closing the info sidebar when the data reloads and needs to rerender.
20
+ - 706fc3a7e1: Updated dependency `@kubernetes/client-node` to `0.20.0`.
21
+ - Updated dependencies
22
+ - @backstage/core-plugin-api@1.8.1-next.0
23
+ - @backstage/core-components@0.13.9-next.0
24
+ - @backstage/plugin-kubernetes-common@0.7.2-next.0
25
+ - @backstage/catalog-model@1.4.3
26
+ - @backstage/errors@1.2.3
27
+ - @backstage/types@1.1.1
28
+
3
29
  ## 0.1.1
4
30
 
5
31
  ### 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
  ));