@backstage/plugin-kubernetes-react 0.1.0-next.1 → 0.1.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 +20 -0
- package/dist/index.esm.js +6 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes-react
|
|
2
2
|
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2d8151061c: Refactor Kubernetes plugins in line with ADR 11, no breaking changes yet
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 4262e12921: Handle mixed decimals and bigint when calculating k8s resource usage
|
|
12
|
+
- 9a1fce352e: Updated dependency `@testing-library/jest-dom` to `^6.0.0`.
|
|
13
|
+
- 95518765ee: Add Kubernetes cluster plugin. Viewing Kubernetes clusters as an Admin from Backstage
|
|
14
|
+
- 5dac12e435: The kubernetes APIs invokes Authentication Strategies when Backstage-Kubernetes-Authorization-X-X headers are provided, this enable the possibility to invoke strategies that executes additional steps to get a kubernetes token like on pinniped or custom strategies
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @backstage/core-plugin-api@1.7.0
|
|
17
|
+
- @backstage/core-components@0.13.6
|
|
18
|
+
- @backstage/catalog-model@1.4.3
|
|
19
|
+
- @backstage/errors@1.2.3
|
|
20
|
+
- @backstage/plugin-kubernetes-common@0.7.0
|
|
21
|
+
- @backstage/types@1.1.1
|
|
22
|
+
|
|
3
23
|
## 0.1.0-next.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.esm.js
CHANGED
|
@@ -1914,8 +1914,12 @@ const currentToDeclaredResourceToPerc = (current, resource) => {
|
|
|
1914
1914
|
if (typeof current === "number" && typeof resource === "number") {
|
|
1915
1915
|
return `${Math.round(current / resource * 100)}%`;
|
|
1916
1916
|
}
|
|
1917
|
-
const numerator = BigInt(
|
|
1918
|
-
|
|
1917
|
+
const numerator = BigInt(
|
|
1918
|
+
typeof current === "number" ? Math.round(current) : current
|
|
1919
|
+
);
|
|
1920
|
+
const denominator = BigInt(
|
|
1921
|
+
typeof resource === "number" ? Math.round(resource) : resource
|
|
1922
|
+
);
|
|
1919
1923
|
return `${numerator * BigInt(100) / denominator}%`;
|
|
1920
1924
|
};
|
|
1921
1925
|
const podStatusToCpuUtil = (podStatus) => {
|