diff --git a/pkg/kubelet/config/config.go b/pkg/kubelet/config/config.go index 33206edce1a..53edf06b459 100644 --- a/pkg/kubelet/config/config.go +++ b/pkg/kubelet/config/config.go @@ -28,20 +28,6 @@ import ( "github.com/golang/glog" ) -// PodConfigListener receives notifications for changes to a configuration. -type PodConfigListener interface { - // OnUpdate is invoked when the kubelet.Pod configuration has been changed by one of - // the sources. The update is properly normalized to remove duplicates. - OnUpdate(pod kubelet.PodUpdate) -} - -// ListenerFunc implements the PodConfigListener interface -type ListenerFunc func(update kubelet.PodUpdate) - -func (h ListenerFunc) OnUpdate(update kubelet.PodUpdate) { - h(update) -} - // PodConfigNotificationMode describes how changes are sent to the update channel type PodConfigNotificationMode int