mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Improve fatal error description in plugins.go of scheduler
The PR add more information to fatal error in plugins.go of scheduler.
This commit is contained in:
		@@ -290,7 +290,7 @@ func validatePredicateOrDie(predicate schedulerapi.PredicatePolicy) {
 | 
				
			|||||||
			numArgs++
 | 
								numArgs++
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if numArgs != 1 {
 | 
							if numArgs != 1 {
 | 
				
			||||||
			glog.Fatalf("Exactly 1 predicate argument is required, numArgs: %v", numArgs)
 | 
								glog.Fatalf("Exactly 1 predicate argument is required, numArgs: %v, Predicate: %s", numArgs, predicate.Name)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -305,7 +305,7 @@ func validatePriorityOrDie(priority schedulerapi.PriorityPolicy) {
 | 
				
			|||||||
			numArgs++
 | 
								numArgs++
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if numArgs != 1 {
 | 
							if numArgs != 1 {
 | 
				
			||||||
			glog.Fatalf("Exactly 1 priority argument is required")
 | 
								glog.Fatalf("Exactly 1 priority argument is required, numArgs: %v, Priority: %s", numArgs, priority.Name)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user