提交 51168c73 编写于 作者: Y yuswift

fix issue #3086

Signed-off-by: Nyuswift <yuswiftli@yunify.com>
上级 44799ae6
...@@ -18,10 +18,13 @@ package app ...@@ -18,10 +18,13 @@ package app
import ( import (
"fmt" "fmt"
kconfig "github.com/kiali/kiali/config" kconfig "github.com/kiali/kiali/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
utilerrors "k8s.io/apimachinery/pkg/util/errors" utilerrors "k8s.io/apimachinery/pkg/util/errors"
cliflag "k8s.io/component-base/cli/flag" cliflag "k8s.io/component-base/cli/flag"
"k8s.io/klog"
"kubesphere.io/kubesphere/cmd/ks-apiserver/app/options" "kubesphere.io/kubesphere/cmd/ks-apiserver/app/options"
apiserverconfig "kubesphere.io/kubesphere/pkg/apiserver/config" apiserverconfig "kubesphere.io/kubesphere/pkg/apiserver/config"
"kubesphere.io/kubesphere/pkg/utils/signals" "kubesphere.io/kubesphere/pkg/utils/signals"
...@@ -40,6 +43,8 @@ func NewAPIServerCommand() *cobra.Command { ...@@ -40,6 +43,8 @@ func NewAPIServerCommand() *cobra.Command {
GenericServerRunOptions: s.GenericServerRunOptions, GenericServerRunOptions: s.GenericServerRunOptions,
Config: conf, Config: conf,
} }
} else {
klog.Fatal("Failed to load configuration from disk", err)
} }
cmd := &cobra.Command{ cmd := &cobra.Command{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册