@backstage/plugin-kubernetes 0.7.1-next.1 → 0.7.1-next.2
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 +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +11 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.7.1-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f563b86a5b: Adds namespace column to Kubernetes error reporting table
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/plugin-catalog-react@1.1.3-next.2
|
|
10
|
+
- @backstage/core-components@0.11.0-next.2
|
|
11
|
+
|
|
3
12
|
## 0.7.1-next.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -254,12 +254,17 @@ const ErrorPanel$1 = ({
|
|
|
254
254
|
const columns = [
|
|
255
255
|
{
|
|
256
256
|
title: "cluster",
|
|
257
|
-
width: "
|
|
257
|
+
width: "10%",
|
|
258
258
|
render: (detectedError) => detectedError.cluster
|
|
259
259
|
},
|
|
260
|
+
{
|
|
261
|
+
title: "namespace",
|
|
262
|
+
width: "10%",
|
|
263
|
+
render: (detectedError) => detectedError.namespace
|
|
264
|
+
},
|
|
260
265
|
{
|
|
261
266
|
title: "kind",
|
|
262
|
-
width: "
|
|
267
|
+
width: "10%",
|
|
263
268
|
render: (detectedError) => detectedError.kind
|
|
264
269
|
},
|
|
265
270
|
{
|
|
@@ -501,7 +506,7 @@ const podStatusToMemoryUtil = (podStatus) => {
|
|
|
501
506
|
};
|
|
502
507
|
|
|
503
508
|
const detectErrorsInObjects = (objects, kind, clusterName, errorMappers) => {
|
|
504
|
-
var _a, _b;
|
|
509
|
+
var _a, _b, _c, _d;
|
|
505
510
|
const errors = /* @__PURE__ */ new Map();
|
|
506
511
|
for (const object of objects) {
|
|
507
512
|
for (const errorMapper of errorMappers) {
|
|
@@ -510,6 +515,7 @@ const detectErrorsInObjects = (objects, kind, clusterName, errorMappers) => {
|
|
|
510
515
|
const dedupKey = message.join("");
|
|
511
516
|
const value = errors.get(dedupKey);
|
|
512
517
|
const name = (_b = (_a = object.metadata) == null ? void 0 : _a.name) != null ? _b : "unknown";
|
|
518
|
+
const namespace = (_d = (_c = object.metadata) == null ? void 0 : _c.namespace) != null ? _d : "unknown";
|
|
513
519
|
if (value !== void 0) {
|
|
514
520
|
value.names.push(name);
|
|
515
521
|
errors.set(dedupKey, value);
|
|
@@ -519,7 +525,8 @@ const detectErrorsInObjects = (objects, kind, clusterName, errorMappers) => {
|
|
|
519
525
|
kind,
|
|
520
526
|
names: [name],
|
|
521
527
|
message,
|
|
522
|
-
severity: errorMapper.severity
|
|
528
|
+
severity: errorMapper.severity,
|
|
529
|
+
namespace
|
|
523
530
|
});
|
|
524
531
|
}
|
|
525
532
|
}
|