Skip to content

Commit

Permalink
Merge pull request #72 from pedro-r-marques/api_update
Browse files Browse the repository at this point in the history
Upstream API changes on master branch.
  • Loading branch information
ananth-at-camphor-networks committed Nov 3, 2015
2 parents 2d23850 + 628316d commit 8ef216c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/network/opencontrail/controller_dispatch.go
Expand Up @@ -46,7 +46,7 @@ func IgnorePod(pod *api.Pod) bool {
return true
}

if value, ok := pod.Annotations[kubetypes.ConfigMirrorAnnotationKey]; ok && value == kubetypes.MirrorType {
if _, ok := pod.Annotations[kubetypes.ConfigMirrorAnnotationKey]; ok {
return true
}
return false
Expand Down
4 changes: 2 additions & 2 deletions pkg/network/opencontrail/mocks/KubePodInterface.go
Expand Up @@ -62,8 +62,8 @@ func (m *KubePodInterface) Update(pod *api.Pod) (*api.Pod, error) {

return r0, r1
}
func (m *KubePodInterface) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error) {
ret := m.Called(label, field, resourceVersion)
func (m *KubePodInterface) Watch(label labels.Selector, field fields.Selector, opts api.ListOptions) (watch.Interface, error) {
ret := m.Called(label, field, opts)

r0 := ret.Get(0).(watch.Interface)
r1 := ret.Error(1)
Expand Down
4 changes: 2 additions & 2 deletions pkg/network/opencontrail/mocks/KubeServiceInterface.go
Expand Up @@ -65,8 +65,8 @@ func (m *KubeServiceInterface) Delete(name string) error {

return r0
}
func (m *KubeServiceInterface) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error) {
ret := m.Called(label, field, resourceVersion)
func (m *KubeServiceInterface) Watch(label labels.Selector, field fields.Selector, opts api.ListOptions) (watch.Interface, error) {
ret := m.Called(label, field, opts)

r0 := ret.Get(0).(watch.Interface)
r1 := ret.Error(1)
Expand Down

0 comments on commit 8ef216c

Please sign in to comment.