-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Fix nil HTTP field #208
Conversation
Ah! I understand the bug now! |
@@ -620,9 +620,8 @@ func (ic *GenericController) getBackendServers() ([]*ingress.Backend, []*ingress | |||
} | |||
|
|||
if rule.HTTP == nil && | |||
len(ing.Spec.TLS) == 0 && |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
LGTM |
fixes #205