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
|
||||
func (k8s *k8sSubscriber) GetKubeConfig() (*rest.Config, error) {
|
||||
if KubeConfig == nil {
|
||||
return rest.InClusterConfig()
|
||||
}
|
||||
|
||||
if *KubeConfig == "" {
|
||||
// Use in-cluster config if kubeconfig path is not specified
|
||||
if *KubeConfig == "" || KubeConfig == nil {
|
||||
return rest.InClusterConfig()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue