From 75fb2608378d5d913cf57084e27bd92af2cd5cd6 Mon Sep 17 00:00:00 2001 From: Mengting Yan Date: Thu, 1 Jul 2021 16:48:36 -0400 Subject: [PATCH] fix(plugins/plugin-kubectl): Deployment Summary Ready shows "undefined/N" if there are no pods ready yet --- .../src/lib/view/modes/Summary/impl/Deployment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plugin-kubectl/src/lib/view/modes/Summary/impl/Deployment.ts b/plugins/plugin-kubectl/src/lib/view/modes/Summary/impl/Deployment.ts index 8e35e426b51..fbf95c75199 100644 --- a/plugins/plugin-kubectl/src/lib/view/modes/Summary/impl/Deployment.ts +++ b/plugins/plugin-kubectl/src/lib/view/modes/Summary/impl/Deployment.ts @@ -32,7 +32,7 @@ import { Deployment } from '../../../../model/resource' function ready(deployment: Deployment) { const { readyReplicas, replicas } = deployment.status - const numerator = readyReplicas + const numerator = readyReplicas || 0 const denominator = replicas return `${numerator}/${denominator}` }