Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #78 from ccll/master
Browse files Browse the repository at this point in the history
Check 'pod.metadata.labels' exists before using it
  • Loading branch information
andresmgot authored Nov 9, 2017
2 parents e05f881 + ec2d0fa commit a3dd272
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ function waitForDeployment(funcName, requestMoment, namespace, options) {
const functionPods = _.filter(
podsInfo.items,
(pod) => (
!_.isEmpty(pod.metadata.labels) &&
pod.metadata.labels.function === funcName &&
// Ignore pods that may still exist from a previous deployment
moment(pod.metadata.creationTimestamp) >= requestMoment
Expand Down

0 comments on commit a3dd272

Please sign in to comment.