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

Make sure we get a BackendService after updating it to populate object fingerprint [WIP] #348

Merged
merged 1 commit into from
Jun 20, 2018

Conversation

rramkumar1
Copy link
Contributor

@rramkumar1 rramkumar1 commented Jun 19, 2018

Turns out that we had an update call without a corresponding get to update the fingerprint.

/assign @nicksardo


This change is Reviewable

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 19, 2018
@rramkumar1
Copy link
Contributor Author

Will think about this some more, and try to rearrange logic to avoid this issue in the first place.

@rramkumar1 rramkumar1 changed the title Make sure we get a BackendService after updating it to populate object fingerprint Make sure we get a BackendService after updating it to populate object fingerprint [WIP] Jun 19, 2018
@nicksardo
Copy link
Contributor

We can do this for now. It's easy.
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 19, 2018
@@ -311,6 +311,12 @@ func (b *Backends) ensureBackendService(sp utils.ServicePort, igLinks []string)
if err = composite.UpdateBackendService(be, b.cloud); err != nil {
return err
}
// Get the BackendService after an update so that the Fingerprint
Copy link
Member

Choose a reason for hiding this comment

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

does the update call itself return the new backendservice fingerprint? (may not need to call get against explicitly)

Copy link
Contributor

Choose a reason for hiding this comment

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

It does not.

@nicksardo nicksardo merged commit 71c4475 into kubernetes:master Jun 20, 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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants