Skip to content

Commit

Permalink
agent: api: rest: KubeConfigCheck fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
taking committed Oct 31, 2024
1 parent ccacb77 commit a93c1de
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions agent/driver/kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ const (

func KubeConfigCheck() bool {
_, err := os.ReadFile(KubeConfigPath)
if err != nil {
return false
}
return true
return err == nil
}

func GetKubernetesClientSet() (*kubernetes.Clientset, error) {
Expand Down

0 comments on commit a93c1de

Please sign in to comment.