Merge pull request #4460 from ethan-daocloud/patch-2

cleanup: fix typos in framework.go
This commit is contained in:
Kubernetes Prow Robot 2019-08-17 10:52:06 -07:00 committed by GitHub
commit 443886e686
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,7 @@ func (f *Framework) GetNginxIP() string {
CoreV1(). CoreV1().
Services(f.Namespace). Services(f.Namespace).
Get("ingress-nginx", metav1.GetOptions{}) Get("ingress-nginx", metav1.GetOptions{})
Expect(err).NotTo(HaveOccurred(), "unexpected error obtaning NGINX IP address") Expect(err).NotTo(HaveOccurred(), "unexpected error obtaining NGINX IP address")
return s.Spec.ClusterIP return s.Spec.ClusterIP
} }
@ -171,7 +171,7 @@ func (f *Framework) GetNginxPodIP() []string {
CoreV1(). CoreV1().
Endpoints(f.Namespace). Endpoints(f.Namespace).
Get("ingress-nginx", metav1.GetOptions{}) Get("ingress-nginx", metav1.GetOptions{})
Expect(err).NotTo(HaveOccurred(), "unexpected error obtaning NGINX IP address") Expect(err).NotTo(HaveOccurred(), "unexpected error obtaining NGINX IP address")
eips := make([]string, 0) eips := make([]string, 0)
for _, s := range e.Subsets { for _, s := range e.Subsets {
for _, a := range s.Addresses { for _, a := range s.Addresses {