Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Apr 28, 2017
1 parent 0ec1537 commit eb60b35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/locator/kuberneteslocator/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ func (k *kubeLocator) Endpoints() ([]*locator.PrometheusEndpoint, error) {
if p.Protocol == v1.ProtocolTCP {
if len(k.portName) > 0 {
if k.portName == p.Name || p.Port == k.portNumber {
// 'port' flag was specified; match by name or port value
port = p.Port
break
}
} else {
// 'port' flag not specified; take the first (TCP) port we found
port = p.Port
break
}
Expand Down

0 comments on commit eb60b35

Please sign in to comment.