Skip to content

Commit

Permalink
fix: close temporary kubeconfig file (kubeshop#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored May 9, 2024
1 parent a369516 commit 1eb65e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/plugin/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func PersistKubeConfig(_ context.Context, kc []byte) (string, func(context.Conte
if err != nil {
return "", nil, errors.Wrap(err, "while writing kube config to file")
}
defer file.Close()

abs, err := filepath.Abs(file.Name())
if err != nil {
Expand Down

0 comments on commit 1eb65e7

Please sign in to comment.