Skip to content

Commit

Permalink
chore(glide): upgrade k8s.io/kubernetes to 1.4.12
Browse files Browse the repository at this point in the history
Signed-off-by: Cryptophobia <[email protected]>
  • Loading branch information
Cryptophobia committed May 6, 2020
1 parent 4591544 commit 71c4322
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 48 deletions.
142 changes: 99 additions & 43 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import:
- package: github.com/codegangsta/cli
version: a65b733b303f0055f8d324d805f393cd3e7a7904
- package: k8s.io/kubernetes
version: 1.4.0-alpha.2
version: v1.4.12
- package: k8s.io/client-go
version: release-1.4
- package: github.com/arschles/assert
version: 6882f85ccdc7c1822b146d1a6b0c2c48f91b5140
- package: github.com/docker/distribution
Expand Down
7 changes: 3 additions & 4 deletions pkg/k8s/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/client/cache"
client "k8s.io/kubernetes/pkg/client/unversioned"
"k8s.io/kubernetes/pkg/controller/framework"
"k8s.io/kubernetes/pkg/labels"
"k8s.io/kubernetes/pkg/runtime"
"k8s.io/kubernetes/pkg/watch"
Expand All @@ -19,21 +18,21 @@ var (
//PodWatcher is a struct which holds the return values of (k8s.io/kubernetes/pkg/controller/framework).NewIndexerInformer together.
type PodWatcher struct {
Store cache.StoreToPodLister
Controller *framework.Controller
Controller *cache.Controller
}

//NewPodWatcher creates a new BuildPodWatcher useful to list the pods using a cache which gets updated based on the watch func.
func NewPodWatcher(c *client.Client, ns string) *PodWatcher {
pw := &PodWatcher{}

pw.Store.Indexer, pw.Controller = framework.NewIndexerInformer(
pw.Store.Indexer, pw.Controller = cache.NewIndexerInformer(
&cache.ListWatch{
ListFunc: podListFunc(c, ns),
WatchFunc: podWatchFunc(c, ns),
},
&api.Pod{},
resyncPeriod,
framework.ResourceEventHandlerFuncs{},
cache.ResourceEventHandlerFuncs{},
cache.Indexers{},
)

Expand Down

0 comments on commit 71c4322

Please sign in to comment.