Skip to content

Commit

Permalink
fix(plugins/plugin-kubectl): Deployment Summary Ready shows "undefine…
Browse files Browse the repository at this point in the history
…d/N" if there are no pods ready yet
  • Loading branch information
myan9 authored and k8s-ci-robot committed Jul 1, 2021
1 parent a535f33 commit 75fb260
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
Expand Down

0 comments on commit 75fb260

Please sign in to comment.