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 bug with ensuring BackendService settings + health checks #288

Merged
merged 1 commit into from
May 31, 2018

Conversation

rramkumar1
Copy link
Contributor

@rramkumar1 rramkumar1 commented May 30, 2018

This PR fixes the logical OR flow in ensureBackendService to ensure that no short-circuiting occurs. Because of this short circuit, when a BackendService was being ensured only the protocol would be ensured, not the health check or description. However, on subsequent syncs, health check and description would eventually get ensured. Regardless, it makes the code clearer to fix this.

Finally, this PR also ensures that we only get a legacy health check if the BackendService is pointing to one. Previously, we would always get it. This addresses nicksardo@'s comment in #269

/assign @nicksardo


This change is Reviewable

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 30, 2018
@nicksardo
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 31, 2018
@nicksardo nicksardo merged commit d995a64 into kubernetes:master May 31, 2018
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

3 participants