diff --git a/cmd/ks-apiserver/app/server.go b/cmd/ks-apiserver/app/server.go index a76b3fcf9..12c85d9c4 100644 --- a/cmd/ks-apiserver/app/server.go +++ b/cmd/ks-apiserver/app/server.go @@ -118,6 +118,11 @@ func Run(s *options.ServerRunOptions, configCh <-chan apiserverconfig.Config, ct s.Config = &cfg ictx, cancelFunc = context.WithCancel(context.TODO()) go func() { + if errs := s.Validate(); len(errs) != 0 { + for _, err := range errs { + errCh <- err + } + } if err := run(s, ictx); err != nil { errCh <- err }