Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Filter ingress ports #885

Merged
merged 2 commits into from
Jun 20, 2017
Merged

Filter ingress ports #885

merged 2 commits into from
Jun 20, 2017

Conversation

ijsnellf
Copy link
Contributor

Filter out non-HTTP ingress ports. This should fix the Envoy crashing observed in istio/old_issues_repo#20. Instead, Pilot will log a warning.

@@ -10,13 +10,13 @@ import (
"github.com/golang/glog"
)

func resolveStatsdAddr(statsdAdrr string) (string, error) {
if statsdAdrr == "" {
func resolveStatsdAddr(statsdAddr string) (string, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed typo

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? Why remove the if block?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore

@istio-testing
Copy link
Contributor

Jenkins job pilot/presubmit passed

Copy link
Member

@rshriram rshriram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about https?

@@ -276,6 +276,9 @@ func buildIngressRoute(ingress *proxyconfig.IngressRule,
if err != nil {
return nil, "", err
}
if servicePort.Protocol != model.ProtocolHTTP {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Https?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ingress is only for HTTP traffic in-cluster. It may expose HTTPS on the front side, but that's irrelevant here.

@@ -10,13 +10,13 @@ import (
"github.com/golang/glog"
)

func resolveStatsdAddr(statsdAdrr string) (string, error) {
if statsdAdrr == "" {
func resolveStatsdAddr(statsdAddr string) (string, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore

@kyessenov
Copy link
Contributor

Disregard e2e failures, the test is broken.

@kyessenov kyessenov merged commit 8d0997c into istio:master Jun 20, 2017
@ijsnellf ijsnellf deleted the filter_ingress_ports branch June 20, 2017 14:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants