avoid re-allocating ServerRunOptions (#5108)
This commit is contained in:
@@ -41,10 +41,7 @@ func NewAPIServerCommand() *cobra.Command {
|
||||
// Load configuration from file
|
||||
conf, err := apiserverconfig.TryLoadFromDisk()
|
||||
if err == nil {
|
||||
s = &options.ServerRunOptions{
|
||||
GenericServerRunOptions: s.GenericServerRunOptions,
|
||||
Config: conf,
|
||||
}
|
||||
s.Config = conf
|
||||
} else {
|
||||
klog.Fatal("Failed to load configuration from disk", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user