Using Running as selectonr for 2.9 onos-config-loader to avoid tangling with the 2.8 job based version
Change-Id: I5caf5362989ca68e057d57745ecd66905a7e2bcc
diff --git a/vars/volthaStackDeploy.groovy b/vars/volthaStackDeploy.groovy
index 3f381f5..9e65d90 100644
--- a/vars/volthaStackDeploy.groovy
+++ b/vars/volthaStackDeploy.groovy
@@ -104,10 +104,10 @@
//meaning ONOS fully deployed
sh """
set +x
- config=\$(kubectl get pods -l app=onos-config-loader -n ${cfg.infraNamespace} --no-headers | grep "0/" | wc -l)
+ config=\$(kubectl get pods -l app=onos-config-loader -n ${cfg.infraNamespace} --no-headers --field-selector=status.phase=Running | grep "0/" | wc -l)
while [[ \$config != 0 ]]; do
sleep 5
- config=\$(kubectl get pods -l app=onos-config-loader -n ${cfg.infraNamespace} --no-headers | grep "0/" | wc -l)
+ config=\$(kubectl get pods -l app=onos-config-loader -n ${cfg.infraNamespace} --no-headers --field-selector=status.phase=Running | grep "0/" | wc -l)
done
"""
}