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

Create a separate RESTClientGetter for Helm client #1802

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

michi-covalent
Copy link
Contributor

Sharing the same RESTClientGetter between Helm client and direct Kubernetes API calls causes "concurrent map read and map write" fatal error as reported in #1794. Introduce a dedicated RESTClientGetter for Helm client so that you don't have to worry about synchronizing access to the same RESTClientGetter. No sharing, no concurrent map read and map write. Problem solved.

Fixes: #1794

Sharing the same RESTClientGetter between Helm client and direct
Kubernetes API calls causes "concurrent map read and map write" fatal
error as reported in #1794. Introduce a dedicated RESTClientGetter for
Helm client so that you don't have to worry about synchronizing access
to the same RESTClientGetter. No sharing, no concurrent map read and
map write. Problem solved.

Fixes: #1794

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
@michi-covalent michi-covalent temporarily deployed to ci July 6, 2023 18:18 — with GitHub Actions Inactive
@michi-covalent michi-covalent added the priority/release-blocker This issue will prevent the release of the next version of Cilium. label Jul 6, 2023
@michi-covalent michi-covalent marked this pull request as ready for review July 6, 2023 20:20
@michi-covalent michi-covalent requested review from a team as code owners July 6, 2023 20:20
Copy link
Member

@asauber asauber left a comment

Choose a reason for hiding this comment

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

LGTM, have you tested this interactively?

@michi-covalent
Copy link
Contributor Author

have you tested this interactively?

no i'm relying on our amazing test coverage 😇

@tklauser tklauser requested a review from bimmlerd July 6, 2023 21:11
@tklauser tklauser merged commit a1c8a1b into main Jul 7, 2023
19 checks passed
@tklauser tklauser deleted the pr/michi/client-go-struggle branch July 7, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/release-blocker This issue will prevent the release of the next version of Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fatal error: concurrent map read and map write
4 participants