Skip to content

Commit

Permalink
log error in ipamd on api server timeout (#1988)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgchinmay authored May 12, 2022
1 parent 1950aa7 commit e3cf980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/k8sapi/k8sutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func CheckAPIServerConnectivity() error {
if err != nil {
// When times out return no error, so the PollInfinite will retry with the given interval
if os.IsTimeout(err) {
log.Errorf("Unable to reach API Server, %v", err)
return false, nil
}
return false, fmt.Errorf("error communicating with apiserver: %v", err)
Expand Down

0 comments on commit e3cf980

Please sign in to comment.