Skip to content

Commit

Permalink
fix: Missing error log for in-cluster config
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-karas-form3 committed Nov 21, 2022
1 parent accd262 commit 51ec238
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/client/config/config.go
Expand Up @@ -125,6 +125,8 @@ func loadConfig(context string) (*rest.Config, error) {
if len(kubeconfigPath) == 0 {
if c, err := loadInClusterConfig(); err == nil {
return c, nil
} else {
log.Error(err, "unable to load in-cluster config")
}
}

Expand Down

0 comments on commit 51ec238

Please sign in to comment.