Skip to content

Commit

Permalink
BUG/MINOR: prevent crash in external mode without external option set
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati authored and oktalz committed Jun 20, 2023
1 parent 76cf6f2 commit 960be87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/k8s/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ func getRestConfig(osArgs utils.OSArgs) (restConfig *rest.Config, err error) {
} else {
restConfig, err = rest.InClusterConfig()
}
if err != nil {
return
}
restConfig.WarningHandler = logger
return restConfig, err
}
Expand Down

0 comments on commit 960be87

Please sign in to comment.