Skip to content

Commit

Permalink
Apply script: fixes bug when deployment.status values are undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
DougReeder committed Dec 10, 2024
1 parent 3f818ee commit f4b1257
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions community-edition/apply/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ function checkDeployments() {
const output = JSON.parse(stdout);
notReady.length = 0;
for (const deployment of output.items) {
if (
deployment.status.readyReplicas < deployment.status.replicas ||
deployment.status.updatedReplicas < deployment.status.replicas ||
deployment.status.availableReplicas < deployment.status.replicas
) {
if ((deployment.status.readyReplicas ?? 0) < deployment.status.replicas) {
notReady.push(deployment.metadata.name);
}
}
Expand Down

0 comments on commit f4b1257

Please sign in to comment.