chore: code formatting

Signed-off-by: 잉퓨 <dayeon620@kakao.com>
This commit is contained in:
잉퓨 2024-10-05 17:01:32 +09:00
parent e99c7f9479
commit f2ea7a4cdd
1 changed files with 2 additions and 5 deletions

View File

@ -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()
}