From fb42b9979d0680528e8986b070e3399685f99048 Mon Sep 17 00:00:00 2001 From: Clayton O'Neill Date: Fri, 14 Jul 2017 09:30:58 -0400 Subject: [PATCH] Fix runningAddresses typo --- core/pkg/ingress/status/status.go | 8 ++++---- core/pkg/ingress/status/status_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/pkg/ingress/status/status.go b/core/pkg/ingress/status/status.go index dd0742c32..be59818a1 100644 --- a/core/pkg/ingress/status/status.go +++ b/core/pkg/ingress/status/status.go @@ -108,7 +108,7 @@ func (s statusSync) Shutdown() { glog.Infof("updating status of Ingress rules (remove)") - addrs, err := s.runningAddresess() + addrs, err := s.runningAddresses() if err != nil { glog.Errorf("error obtaining running IPs: %v", addrs) return @@ -157,7 +157,7 @@ func (s *statusSync) sync(key interface{}) error { return nil } - addrs, err := s.runningAddresess() + addrs, err := s.runningAddresses() if err != nil { return err } @@ -213,9 +213,9 @@ func NewStatusSyncer(config Config) Sync { return st } -// runningAddresess returns a list of IP addresses and/or FQDN where the +// runningAddresses returns a list of IP addresses and/or FQDN where the // ingress controller is currently running -func (s *statusSync) runningAddresess() ([]string, error) { +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{}) diff --git a/core/pkg/ingress/status/status_test.go b/core/pkg/ingress/status/status_test.go index 795aca4a2..7ffca82c6 100644 --- a/core/pkg/ingress/status/status_test.go +++ b/core/pkg/ingress/status/status_test.go @@ -343,7 +343,7 @@ func TestKeyfunc(t *testing.T) { func TestRunningAddresessWithPublishService(t *testing.T) { fk := buildStatusSync() - r, _ := fk.runningAddresess() + r, _ := fk.runningAddresses() if r == nil { t.Fatalf("returned nil but expected valid []string") } @@ -357,7 +357,7 @@ func TestRunningAddresessWithPods(t *testing.T) { fk := buildStatusSync() fk.PublishService = "" - r, _ := fk.runningAddresess() + r, _ := fk.runningAddresses() if r == nil { t.Fatalf("returned nil but expected valid []string") }