Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nil HTTP field #208

Merged
merged 1 commit into from
Feb 2, 2017
Merged

Fix nil HTTP field #208

merged 1 commit into from
Feb 2, 2017

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Feb 2, 2017

fixes #205

@k8s-reviewable
Copy link

This change is Reviewable

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 2, 2017
@justinsb
Copy link
Member

justinsb commented Feb 2, 2017

Ah! I understand the bug now!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.009%) to 44.209% when pulling 4cc24bd on aledbf:master into e86d32d on kubernetes:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.009%) to 44.209% when pulling 4cc24bd on aledbf:master into e86d32d on kubernetes:master.

@@ -620,9 +620,8 @@ func (ic *GenericController) getBackendServers() ([]*ingress.Backend, []*ingress
}

if rule.HTTP == nil &&
len(ing.Spec.TLS) == 0 &&
Copy link
Contributor

Choose a reason for hiding this comment

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

If I just create an ingress with a TLS section, doesn't that mean I want tls routing?

Copy link
Member Author

Choose a reason for hiding this comment

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

@bprashanth yes. This validation tries to avoid creating a server without a valid configuration. Please check the context https://github.com/aledbf/ingress/blob/4cc24bd2164c139611c5691237505563744cad7e/core/pkg/ingress/controller/controller.go#L622

@aledbf aledbf changed the title WIP: Fix nil HTTP field Fix nil HTTP field Feb 2, 2017
@bprashanth
Copy link
Contributor

LGTM

@bprashanth bprashanth merged commit e523ca9 into kubernetes:master Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic with nil HTTP rule
6 participants