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

endpoint: factor out waiting for first regeneration during creation into separate function #9073

Merged
merged 1 commit into from Sep 4, 2019

Conversation

ianvernon
Copy link
Member

@ianvernon ianvernon commented Aug 28, 2019

This hides a lot of endpoint internals from the `daemon`.

Signed-off by: Ian Vernon ian@cilium.io

I have a branch in which I have done way more refactoring of this code, but I think this is a good first step into hiding endpoint internals from the Daemon during Endpoint creation.


This change is Reviewable

@ianvernon ianvernon added pending-review kind/cleanup This includes no functional changes. labels Aug 28, 2019
@ianvernon ianvernon added this to the 1.7 milestone Aug 28, 2019
@ianvernon ianvernon requested a review from a team as a code owner August 28, 2019 21:43
@ianvernon ianvernon added this to In progress in Endpoint Cleanup via automation Aug 28, 2019
@@ -2007,3 +2007,106 @@ func (e *Endpoint) Delete(monitor monitorOwner, ipam ipReleaser, manager endpoin

return errs
}

type ContainerStartFunc func()

Choose a reason for hiding this comment

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

exported type ContainerStartFunc should have comment or be unexported

@ianvernon
Copy link
Member Author

test-me-please

@ianvernon ianvernon force-pushed the pr/ianvernon/hide-endpoint-creation branch from 4eb95b1 to aab062a Compare August 28, 2019 21:43
@ianvernon
Copy link
Member Author

test-me-please

@ianvernon ianvernon force-pushed the pr/ianvernon/hide-endpoint-creation branch from aab062a to fc4d0bf Compare August 28, 2019 21:57
@ianvernon
Copy link
Member Author

test-me-please

@coveralls
Copy link

coveralls commented Aug 28, 2019

Coverage Status

Coverage decreased (-0.002%) to 44.045% when pulling 1ef1c6a on pr/ianvernon/hide-endpoint-creation into 3608f38 on master.

Copy link
Contributor

@raybejjani raybejjani left a comment

Choose a reason for hiding this comment

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

My only blocker is a comment to explain when cfunc is called inside .Create

pkg/endpoint/endpoint.go Outdated Show resolved Hide resolved
pkg/endpoint/endpoint.go Outdated Show resolved Hide resolved
pkg/endpoint/endpoint.go Show resolved Hide resolved
aanm
aanm previously requested changes Aug 30, 2019
pkg/endpoint/endpoint.go Outdated Show resolved Hide resolved
@ianvernon ianvernon force-pushed the pr/ianvernon/hide-endpoint-creation branch 2 times, most recently from 5f9a02f to 88b8676 Compare September 3, 2019 16:05
@ianvernon
Copy link
Member Author

test-me-please

…nto separate function

This hides a lot of endpoint internals from the \`daemon\`.

Signed-off by: Ian Vernon <ian@cilium.io>
@ianvernon ianvernon force-pushed the pr/ianvernon/hide-endpoint-creation branch from 88b8676 to 1ef1c6a Compare September 4, 2019 14:56
@ianvernon
Copy link
Member Author

test-me-please

@ianvernon ianvernon dismissed aanm’s stale review September 4, 2019 14:57

Addressed comments.

@ianvernon
Copy link
Member Author

@ianvernon
Copy link
Member Author

test-me-please

@ianvernon
Copy link
Member Author

Merging; all comments have been addressed.

@ianvernon ianvernon merged commit 9fd1cea into master Sep 4, 2019
Endpoint Cleanup automation moved this from In progress to Done Sep 4, 2019
@ianvernon ianvernon deleted the pr/ianvernon/hide-endpoint-creation branch September 4, 2019 21:38
@aanm aanm added the release-note/misc This PR makes changes that have no direct user impact. label Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants