Skip to content

Commit

Permalink
add more logging to hpa controller (#2445)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvello committed Oct 11, 2018
1 parent 02a79ac commit 33525e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/util/kubernetes/apiserver/hpa_controller.go
Expand Up @@ -229,16 +229,18 @@ func (h *AutoscalersController) worker() {
func (h *AutoscalersController) processNext() bool {
key, quit := h.queue.Get()
if quit {
log.Infof("Autoscaler queue is shutting down, stopping processing")
return false
}

log.Tracef("Processing %s", key)
defer h.queue.Done(key)

err := h.syncAutoscalers(key)
if err != nil {
log.Errorf("Could not sync HPAs %s", err)
}

// Debug output for unit tests only
if h.autoscalers != nil {
h.autoscalers <- key
}
Expand Down

0 comments on commit 33525e8

Please sign in to comment.