@backstage/plugin-kubernetes 0.6.3 → 0.6.4-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 +11 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.6.4-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f616d99f6f: Fix division by zero in currentToDeclaredResourceToPerc when pod resources weren't set
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/catalog-model@1.0.1-next.0
|
|
10
|
+
- @backstage/plugin-catalog-react@1.0.1-next.0
|
|
11
|
+
- @backstage/core-components@0.9.3-next.0
|
|
12
|
+
- @backstage/plugin-kubernetes-common@0.2.9-next.0
|
|
13
|
+
|
|
3
14
|
## 0.6.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.esm.js
CHANGED
|
@@ -378,6 +378,8 @@ const renderCondition = (condition) => {
|
|
|
378
378
|
return [condition.type, /* @__PURE__ */ React__default.createElement(StatusAborted, null)];
|
|
379
379
|
};
|
|
380
380
|
const currentToDeclaredResourceToPerc = (current, resource) => {
|
|
381
|
+
if (Number(resource) === 0)
|
|
382
|
+
return `0%`;
|
|
381
383
|
if (typeof current === "number" && typeof resource === "number") {
|
|
382
384
|
return `${Math.round(current / resource * 100)}%`;
|
|
383
385
|
}
|