Skip to content

Commit

Permalink
Merge pull request kubernetes#21816 from caesarxuchao/fix-21763
Browse files Browse the repository at this point in the history
Fix the EventSink in HPA controller
  • Loading branch information
caesarxuchao committed Feb 24, 2016
2 parents 4add4eb + e20e295 commit cf98bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/podautoscaler/horizontal.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var upscaleForbiddenWindow = 3 * time.Minute

func NewHorizontalController(evtNamespacer unversionedcore.EventsGetter, scaleNamespacer unversionedextensions.ScalesGetter, hpaNamespacer unversionedextensions.HorizontalPodAutoscalersGetter, metricsClient metrics.MetricsClient) *HorizontalController {
broadcaster := record.NewBroadcaster()
broadcaster.StartRecordingToSink(evtNamespacer.Events(""))
broadcaster.StartRecordingToSink(&unversionedcore.EventSinkImpl{evtNamespacer.Events("")})
recorder := broadcaster.NewRecorder(api.EventSource{Component: "horizontal-pod-autoscaler"})

return &HorizontalController{
Expand Down

0 comments on commit cf98bcb

Please sign in to comment.