Skip to content

Commit

Permalink
update deprecated interface
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxuzhonghu committed Sep 9, 2017
1 parent 7b4d8cb commit a1d04a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/pkg/ingress/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func NewStatusSyncer(config Config) Sync {

lock := resourcelock.ConfigMapLock{
ConfigMapMeta: meta_v1.ObjectMeta{Namespace: pod.Namespace, Name: electionID},
Client: config.Client.Core(),
Client: config.Client.CoreV1(),
LockConfig: resourcelock.ResourceLockConfig{
Identity: electionID,
EventRecorder: recorder,
Expand Down Expand Up @@ -246,7 +246,7 @@ func NewStatusSyncer(config Config) Sync {
func (s *statusSync) runningAddresses() ([]string, error) {
if s.PublishService != "" {
ns, name, _ := k8s.ParseNameNS(s.PublishService)
svc, err := s.Client.Core().Services(ns).Get(name, meta_v1.GetOptions{})
svc, err := s.Client.CoreV1().Services(ns).Get(name, meta_v1.GetOptions{})
if err != nil {
return nil, err
}
Expand All @@ -267,7 +267,7 @@ func (s *statusSync) runningAddresses() ([]string, error) {
}

// get information about all the pods running the ingress controller
pods, err := s.Client.Core().Pods(s.pod.Namespace).List(meta_v1.ListOptions{
pods, err := s.Client.CoreV1().Pods(s.pod.Namespace).List(meta_v1.ListOptions{
LabelSelector: labels.SelectorFromSet(s.pod.Labels).String(),
})
if err != nil {
Expand All @@ -285,7 +285,7 @@ func (s *statusSync) runningAddresses() ([]string, error) {
}

func (s *statusSync) isRunningMultiplePods() bool {
pods, err := s.Client.Core().Pods(s.pod.Namespace).List(meta_v1.ListOptions{
pods, err := s.Client.CoreV1().Pods(s.pod.Namespace).List(meta_v1.ListOptions{
LabelSelector: labels.SelectorFromSet(s.pod.Labels).String(),
})
if err != nil {
Expand Down

0 comments on commit a1d04a7

Please sign in to comment.