Skip to content

Commit

Permalink
Add log message for failed health check
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Schneppenheim committed Mar 27, 2019
1 parent 98bd27b commit 81832c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ func (c *Client) NodeMetricses() (*v1beta1.NodeMetricsList, error) {
func (c *Client) IsHealthy() bool {
_, err := c.apiClient.CoreV1().Pods(metav1.NamespaceAll).List(metav1.ListOptions{})
if err != nil {
log.WithFields(log.Fields{
"error": err.Error(),
}).Error("kubernetes client is not healthy")
return false
}

Expand Down

0 comments on commit 81832c6

Please sign in to comment.