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: do not export endpoint locking functions #9142

Merged
merged 10 commits into from Sep 9, 2019

Conversation

ianvernon
Copy link
Member

@ianvernon ianvernon commented Sep 5, 2019

All locking functionality for the endpoint is now contained within pkg/endpoint; do not export this functionality accordingly.


This change is Reviewable

@ianvernon ianvernon added pending-review kind/cleanup This includes no functional changes. labels Sep 5, 2019
@ianvernon ianvernon requested review from a team September 5, 2019 21:01
@ianvernon ianvernon requested review from a team as code owners September 5, 2019 21:01
@ianvernon ianvernon requested a review from a team September 5, 2019 21:01
@ianvernon ianvernon requested a review from a team as a code owner September 5, 2019 21:01
@ianvernon ianvernon added this to In progress in Endpoint Cleanup via automation Sep 5, 2019
@coveralls
Copy link

coveralls commented Sep 5, 2019

Coverage Status

Coverage increased (+0.05%) to 44.278% when pulling 459550c on pr/ianvernon/do-not-export-endpoint-locks into a29d76c on master.

@ianvernon
Copy link
Member Author

test-me-please

Ian Vernon added 10 commits September 6, 2019 08:16
…tapathMap`

Callers should not be aware of the need to lock an Endpoint. Refactor `PinDatapathMap`
to acquire the mutex and change callers accordingly.

Signed-off by: Ian Vernon <ian@cilium.io>
These are no longer used outside of `pkg/endpoint`; do not export them.

Signed-off by: Ian Vernon <ian@cilium.io>
Wrap locking + setting state in a function which does not require callers
to lock the endpoint.

Signed-off by: Ian Vernon <ian@cilium.io>
This is not used outside of `pkg/endpoint` any more; do not export it.

Signed-off by: Ian Vernon <ian@cilium.io>
This is not used outside of `pkg/endpoint` any more; do not export it.

Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
Factor out the acquisition / releasing of mutexes into the endpoint package so
that callers do not have to rely on accessing the endpoint's mutex.

Signed-off by: Ian Vernon <ian@cilium.io>
This allows for endpoint locking to not need to be exposed to unit tests for
`daemon`.

Signed-off by: Ian Vernon <ian@cilium.io>
This is no longer used outside of `pkg/endpoint`; do not export it.

Signed-off by: Ian Vernon <ian@cilium.io>
This is no longer used outside of `pkg/endpoint`; do not export it.

Signed-off by: Ian Vernon <ian@cilium.io>
@ianvernon ianvernon force-pushed the pr/ianvernon/do-not-export-endpoint-locks branch from c68fe2b to 459550c Compare September 6, 2019 15:16
@ianvernon
Copy link
Member Author

test-me-please

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.

LGTM!

@ianvernon ianvernon merged commit caec1d1 into master Sep 9, 2019
Endpoint Cleanup automation moved this from In progress to Done Sep 9, 2019
@ianvernon ianvernon deleted the pr/ianvernon/do-not-export-endpoint-locks branch September 9, 2019 15:01
@ianvernon ianvernon added this to the 1.7 milestone Sep 9, 2019
@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Nov 13, 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

5 participants