diff --git a/cmd/ks-apiserver/app/server.go b/cmd/ks-apiserver/app/server.go index 2265e1494..19c1b8ac2 100644 --- a/cmd/ks-apiserver/app/server.go +++ b/cmd/ks-apiserver/app/server.go @@ -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) }