Skip to content

Commit

Permalink
chore: code formatting
Browse files Browse the repository at this point in the history
Signed-off-by: 잉퓨 <[email protected]>
  • Loading branch information
inpyu committed Oct 5, 2024
1 parent e99c7f9 commit f2ea7a4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions chaoscenter/subscriber/pkg/k8s/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit f2ea7a4

Please sign in to comment.