Skip to content

Commit

Permalink
Merge pull request #383 from ironcladlou/informer-source-compat
Browse files Browse the repository at this point in the history
⚠️ source: make the Informer source compatible with cache.Informer
  • Loading branch information
k8s-ci-robot authored Apr 5, 2019
2 parents 90226f9 + bb84391 commit 0d6f672
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/source/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/runtime/inject"
"sigs.k8s.io/controller-runtime/pkg/source/internal"

toolscache "k8s.io/client-go/tools/cache"
"sigs.k8s.io/controller-runtime/pkg/cache"
"sigs.k8s.io/controller-runtime/pkg/predicate"
)
Expand Down Expand Up @@ -243,8 +242,8 @@ func (cs *Channel) syncLoop() {

// Informer is used to provide a source of events originating inside the cluster from Watches (e.g. Pod Create)
type Informer struct {
// Informer is the generated client-go Informer
Informer toolscache.SharedIndexInformer
// Informer is the controller-runtime Informer
Informer cache.Informer
}

var _ Source = &Informer{}
Expand Down

0 comments on commit 0d6f672

Please sign in to comment.