mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 00:10:57 +00:00 
			
		
		
		
	Fix: don't show "partial" for k8s status if there are completed job pods (#3735)
This commit is contained in:
		
							parent
							
								
									95ab0706b6
								
							
						
					
					
						commit
						0d7072beea
					
				@ -48,8 +48,8 @@ export default async function handler(req, res) {
 | 
			
		||||
      logger.error(`no pods found with namespace=${namespace} and labelSelector=${labelSelector}`);
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
    const someReady = pods.find((pod) => pod.status.phase === "Running");
 | 
			
		||||
    const allReady = pods.every((pod) => pod.status.phase === "Running");
 | 
			
		||||
    const someReady = pods.find((pod) => pod.status.phase in ["Completed", "Running"]);
 | 
			
		||||
    const allReady = pods.every((pod) => pod.status.phase in ["Completed", "Running"]);
 | 
			
		||||
    let status = "down";
 | 
			
		||||
    if (allReady) {
 | 
			
		||||
      status = "running";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user