Skip to content

Commit

Permalink
OOM observer implements ResourceEventHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
bskiba committed Jan 10, 2019
1 parent 58dcfb0 commit 544c53a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vertical-pod-autoscaler/pkg/recommender/input/oom/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
apiv1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/autoscaler/vertical-pod-autoscaler/pkg/recommender/model"
"k8s.io/client-go/tools/cache"

"github.com/golang/glog"
)
Expand All @@ -38,6 +39,7 @@ type OomInfo struct {
type Observer interface {
GetObservedOomsChannel() chan OomInfo
OnEvent(*apiv1.Event)
cache.ResourceEventHandler
}

// observer can observe pod resource update and collect OOM events.
Expand Down

0 comments on commit 544c53a

Please sign in to comment.