invalid config file should not be ignored (#5228)

fix the invalid config file should not be ignored
This commit is contained in:
hongming
2022-09-20 10:06:15 +08:00
committed by GitHub
parent 6af86c2cf1
commit db867fa2ed
3 changed files with 4 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ func NewControllerManagerCommand() *cobra.Command {
WebhookCertDir: s.WebhookCertDir,
}
} else {
klog.Fatal("Failed to load configuration from disk", err)
klog.Fatalf("Failed to load configuration from disk: %v", err)
}
cmd := &cobra.Command{

View File

@@ -43,7 +43,7 @@ func NewAPIServerCommand() *cobra.Command {
if err == nil {
s.Config = conf
} else {
klog.Fatal("Failed to load configuration from disk", err)
klog.Fatalf("Failed to load configuration from disk: %v", err)
}
cmd := &cobra.Command{