Change:
Forked from pointed out that all package names should be lower case, no under_scores or mixedCaps. The same rule applies to renaming imported packages. () generated a list of mixedCaps package names in our codebase: I will upload a PR later to rename kubeletTypes to kubetypes, and the rest is up for grabs.
sorry i have not saw this issue as i open a similar one(), do you mind i participate in this issue? i would happy to do some work for this. best regards.
of course, fixes are welcome. Thanks for picking up on this! We'll try to expedite the review and merge process of such PRs to avoid a lot of churns, but chances are that some rebases are needed :)
ok, i will send some fix sonner, and tag you for review. thanks again.
Not done:

Discussion:
"k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/client/cache" client "k8s.io/kubernetes/pkg/client/unversioned" <del> controllerFramework "k8s.io/kubernetes/pkg/controller/framework" </del> <ins> controllerframework "k8s.io/kubernetes/pkg/controller/framework" </ins> "k8s.io/kubernetes/pkg/fields" "k8s.io/kubernetes/pkg/labels" "k8s.io/kubernetes/pkg/master/ports"

existingPods := cache.NewStore(cache.MetaNamespaceKeyFunc) var ns string var config RCConfig <del> var controller *controllerFramework.Controller </del> <ins> var controller *controllerframework.Controller </ins> var newPods cache.Store var stopCh chan struct{} var tracker *podTracker

stopCh = make(chan struct{}) tracker = newPodTracker() <del> newPods, controller = controllerFramework.NewInformer( </del> <ins> newPods, controller = controllerframework.NewInformer( </ins> &cache.ListWatch{ ListFunc: func() (runtime.Object, error) { return framework.Client.Pods(ns).List(labelSelector, fields.Everything())

}, &api.Pod{}, 0, <del> controllerFramework.ResourceEventHandlerFuncs{ </del> <ins> controllerframework.ResourceEventHandlerFuncs{ </ins> AddFunc: func(obj interface{}) { tracker.remember(obj.(*api.Pod), ADD) },

"k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/client/cache" client "k8s.io/kubernetes/pkg/client/unversioned" <del> controllerFramework "k8s.io/kubernetes/pkg/controller/framework" </del> <ins> controllerframework "k8s.io/kubernetes/pkg/controller/framework" </ins> "k8s.io/kubernetes/pkg/fields" "k8s.io/kubernetes/pkg/labels" "k8s.io/kubernetes/pkg/runtime"

// Create a listener for events. events := make([](*api.Event), 0) <del> _, controller := controllerFramework.NewInformer( </del> <ins> _, controller := controllerframework.NewInformer( </ins> &cache.ListWatch{ ListFunc: func() (runtime.Object, error) { return c.Events(ns).List(labels.Everything(), fields.Everything())

}, &api.Event{}, 0, <del> controllerFramework.ResourceEventHandlerFuncs{ </del> <ins> controllerframework.ResourceEventHandlerFuncs{ </ins> AddFunc: func(obj interface{}) { events = append(events, obj.(*api.Event)) },

} additionalPodsPrefix = "density-latency-pod-" + string(util.NewUUID()) <del> _, controller := controllerFramework.NewInformer( </del> <ins> _, controller := controllerframework.NewInformer( </ins> &cache.ListWatch{ ListFunc: func() (runtime.Object, error) { return c.Pods(ns).List(labels.SelectorFromSet(labels.Set{"name": additionalPodsPrefix}), fields.Everything())

}, &api.Pod{}, 0, <del> controllerFramework.ResourceEventHandlerFuncs{ </del> <ins> controllerframework.ResourceEventHandlerFuncs{ </ins> AddFunc: func(obj interface{}) { p, ok := obj.(*api.Pod) Expect(ok).To(Equal(true))