Skip to content

Commit

Permalink
Fixing the recent removal of unversioned client interfaces.
Browse files Browse the repository at this point in the history
We need to reference explicitly versioned interfaces
  • Loading branch information
Levovar committed Feb 27, 2019
1 parent 9fa11be commit 2e0042e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/ipam/ipam.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func updateDanmNetAllocation (danmClient danmclientset.Interface, netInfo danmty
//Randomizing backoff time to decrease the possibility of conflicts
randomBackoff := rand.Intn(backOffTimer)
time.Sleep(time.Duration(randomBackoff) * time.Millisecond)
newNetSpec, err := danmClient.Danm().DanmNets(netInfo.ObjectMeta.Namespace).Get(netInfo.Spec.NetworkID, meta_v1.GetOptions{})
newNetSpec, err := danmClient.DanmV1().DanmNets(netInfo.ObjectMeta.Namespace).Get(netInfo.Spec.NetworkID, meta_v1.GetOptions{})
if err != nil {
return false, errors.New("After IP address reservation conflict, network cannot be read again!"), danmtypes.DanmNet{}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/svcwatcher/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ func (c *Controller) updatePod(old, new interface{}) {
if deNew.Spec.Pod == podName && deNew.Namespace == podNs {
deLabels := newPod.Labels
deNew.SetLabels(deLabels)
c.danmclient.Danm().DanmEps(deNew.Namespace).Update(deNew)
c.danmclient.DanmV1().DanmEps(deNew.Namespace).Update(deNew)
}
}
}
Expand Down

0 comments on commit 2e0042e

Please sign in to comment.