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

refactor controllers.go #1356

Closed
wants to merge 1 commit into from
Closed

Conversation

hzxuzhonghu
Copy link
Member

fix panic for previous pr #1345

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 14, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 14, 2017
}

if len(upstreams[upstreamName].Endpoints) == 0 {
endps, err := ic.serviceEndpoints(svcKey, backend.ServicePort.String(), hz)
Copy link
Member Author

Choose a reason for hiding this comment

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

previously here panic. Now I pass extensions.IngressBackend as a param to cover 2 cases

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 44.234% when pulling fca1326 on hzxuzhonghu:example into b2ad9e7 on kubernetes:master.

@hzxuzhonghu
Copy link
Member Author

conflict resolved

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 44.256% when pulling 0cc028e2530c608e7356324984ac6ea6a0210d16 on hzxuzhonghu:example into 9126ec4 on kubernetes:master.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 25, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 43.615% when pulling 371f898 on hzxuzhonghu:example into e43641f on kubernetes:master.

@hzxuzhonghu
Copy link
Member Author

@aledbf would you please take a look?

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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants