Display zero minAvailable/maxUnavailable as 0 instead of N/A (#7620)

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2023-04-25 15:15:44 +03:00
1 parent 4024d184fa
commit 5f3a7a5873
2 files changed
+119 -2

No files matched your search

@@ -60,11 +60,11 @@ export class PodDisruptionBudget extends KubeObject<
}
getMinAvailable() {
return this.spec.minAvailable || "N/A";
return this.spec.minAvailable ?? "N/A";
}
getMaxUnavailable() {
return this.spec.maxUnavailable || "N/A";
return this.spec.maxUnavailable ?? "N/A";
}
getCurrentHealthy() {