chore: code formatting
Signed-off-by: 잉퓨 <dayeon620@kakao.com>
This commit is contained in:
parent
e99c7f9479
commit
f2ea7a4cdd
|
|
@ -16,11 +16,8 @@ var KubeConfig *string
|
||||||
|
|
||||||
// getKubeConfig setup the config for access cluster resource
|
// getKubeConfig setup the config for access cluster resource
|
||||||
func (k8s *k8sSubscriber) GetKubeConfig() (*rest.Config, error) {
|
func (k8s *k8sSubscriber) GetKubeConfig() (*rest.Config, error) {
|
||||||
if KubeConfig == nil {
|
// Use in-cluster config if kubeconfig path is not specified
|
||||||
return rest.InClusterConfig()
|
if *KubeConfig == "" || KubeConfig == nil {
|
||||||
}
|
|
||||||
|
|
||||||
if *KubeConfig == "" {
|
|
||||||
return rest.InClusterConfig()
|
return rest.InClusterConfig()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue