Skip to content

Commit

Permalink
Merge pull request #661 from brotherlogic/handle
Browse files Browse the repository at this point in the history
Handle missing config better
  • Loading branch information
brotherlogic committed Feb 21, 2023
2 parents 56bd99b + 34669fe commit 0c65835
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discoveryv2api.go
Expand Up @@ -46,6 +46,7 @@ func (s *Server) getFromKube(ctx context.Context, req *pb.GetRequest) (*pb.GetRe
config, err := clientcmd.BuildConfigFromFlags("", "/home/simon/.kube/config")
if err != nil {
s.RaiseIssue("Missing kubeconfig", fmt.Sprintf("%v is missing the kube config", s.Registry.Identifier))
return &pb.GetResponse{}, nil
}

// create the clientset
Expand Down

0 comments on commit 0c65835

Please sign in to comment.