aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/kubernetes')
-rw-r--r--plugin/kubernetes/autopath.go2
-rw-r--r--plugin/kubernetes/object/service.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/kubernetes/autopath.go b/plugin/kubernetes/autopath.go
index 06bde0a69..33bf401f5 100644
--- a/plugin/kubernetes/autopath.go
+++ b/plugin/kubernetes/autopath.go
@@ -49,7 +49,7 @@ func (k *Kubernetes) AutoPath(state request.Request) []string {
return search
}
-// podWithIP return the api.Pod for source IP ip. It returns nil if nothing can be found.
+// podWithIP return the api.Pod for source IP. It returns nil if nothing can be found.
func (k *Kubernetes) podWithIP(ip string) *object.Pod {
ps := k.APIConn.PodIndex(ip)
if len(ps) == 0 {
diff --git a/plugin/kubernetes/object/service.go b/plugin/kubernetes/object/service.go
index 3c8304362..a41100ab9 100644
--- a/plugin/kubernetes/object/service.go
+++ b/plugin/kubernetes/object/service.go
@@ -46,7 +46,7 @@ func ToService(obj interface{}) interface{} {
}
if len(svc.Spec.Ports) == 0 {
- // Add sentinal if there are no ports.
+ // Add sentinel if there are no ports.
s.Ports = []api.ServicePort{{Port: -1}}
} else {
s.Ports = make([]api.ServicePort, len(svc.Spec.Ports))