diff --git a/lib/deploy.js b/lib/deploy.js index 4ce7d04..e06e3bf 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -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