+function wait_for_pods_to_be_running() {
+ while [[ $TIME -lt 2000 ]]; do
+ NONRTRIC_PODS=$(kubectl get pods -n default --field-selector=status.phase!=Running,status.phase!=Succeeded --no-headers)
+ if [[ -z "$NONRTRIC_PODS" ]]; then
+ echo "All Components are running."
+ kubectl get pods -n default
+ break
+ fi
+
+ echo "Waiting for the below Components to be running..."
+ echo "$NONRTRIC_PODS"
+ TIME=$(expr $TIME + 5)
+ sleep 5
+ done
+}
+