mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #51622 from shyamjvs/correct-hollow-node-listing
Automatic merge from submit-queue Only list hollow-node pods while trying to count them Otherwise it's counting 1 extra due to heapster pod.
This commit is contained in:
		@@ -356,7 +356,7 @@ function wait-for-hollow-nodes-to-run-or-timeout {
 | 
				
			|||||||
      else
 | 
					      else
 | 
				
			||||||
        echo "Got error while trying to list hollow-nodes. Probably API server is down."
 | 
					        echo "Got error while trying to list hollow-nodes. Probably API server is down."
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
      pods=$("${KUBECTL}" get pods --namespace=kubemark) || true
 | 
					      pods=$("${KUBECTL}" get pods -l name=hollow-node --namespace=kubemark) || true
 | 
				
			||||||
      running=$(($(echo "${pods}" | grep "Running" | wc -l)))
 | 
					      running=$(($(echo "${pods}" | grep "Running" | wc -l)))
 | 
				
			||||||
      echo "${running} hollow-nodes are reported as 'Running'"
 | 
					      echo "${running} hollow-nodes are reported as 'Running'"
 | 
				
			||||||
      not_running=$(($(echo "${pods}" | grep -v "Running" | wc -l) - 1))
 | 
					      not_running=$(($(echo "${pods}" | grep -v "Running" | wc -l) - 1))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user