Skip to content

Commit

Permalink
Fix runningAddresses typo
Browse files Browse the repository at this point in the history
  • Loading branch information
claytono committed Jul 14, 2017
1 parent d416d02 commit fb42b99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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 @@ -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
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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{})
Expand Down
4 changes: 2 additions & 2 deletions core/pkg/ingress/status/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand All @@ -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")
}
Expand Down

0 comments on commit fb42b99

Please sign in to comment.