From 51168c730c2b9f15fc6b53b6f1f969b4feb8f63c Mon Sep 17 00:00:00 2001 From: yuswift Date: Thu, 5 Nov 2020 15:26:12 +0800 Subject: [PATCH] fix issue #3086 Signed-off-by: yuswift --- cmd/ks-apiserver/app/server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/ks-apiserver/app/server.go b/cmd/ks-apiserver/app/server.go index 43de5fab3..7f0e3fa73 100644 --- a/cmd/ks-apiserver/app/server.go +++ b/cmd/ks-apiserver/app/server.go @@ -18,10 +18,13 @@ package app import ( "fmt" + kconfig "github.com/kiali/kiali/config" "github.com/spf13/cobra" utilerrors "k8s.io/apimachinery/pkg/util/errors" cliflag "k8s.io/component-base/cli/flag" + "k8s.io/klog" + "kubesphere.io/kubesphere/cmd/ks-apiserver/app/options" apiserverconfig "kubesphere.io/kubesphere/pkg/apiserver/config" "kubesphere.io/kubesphere/pkg/utils/signals" @@ -40,6 +43,8 @@ func NewAPIServerCommand() *cobra.Command { GenericServerRunOptions: s.GenericServerRunOptions, Config: conf, } + } else { + klog.Fatal("Failed to load configuration from disk", err) } cmd := &cobra.Command{