Merge pull request #100557 from chendave/validation_cleanup

Validate plugin config for KubeSchedulerConfiguration
This commit is contained in:
Kubernetes Prow Robot
2021-04-14 18:20:01 -07:00
committed by GitHub
16 changed files with 218 additions and 96 deletions

View File

@@ -419,7 +419,7 @@ func runWorkload(b *testing.B, tc *testCase, w *workload) []DataItem {
if err != nil {
b.Fatalf("error loading scheduler config file: %v", err)
}
if err = validation.ValidateKubeSchedulerConfiguration(cfg).ToAggregate(); err != nil {
if err = validation.ValidateKubeSchedulerConfiguration(cfg); err != nil {
b.Fatalf("validate scheduler config file failed: %v", err)
}
}