-
Notifications
You must be signed in to change notification settings - Fork 210
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
k8s.NewClient: Initialize Helm action configuration #1836
Conversation
Commit 761761b does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
This reverts commit a1c8a1b. Signed-off-by: Michi Mutsuzaki <[email protected]>
438ed25
to
0b8ef19
Compare
Commit 761761b does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
0b8ef19
to
e5a2912
Compare
e5a2912
to
4f272a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the fix for LatestRelease
4f272a1
to
6837189
Compare
Initialize Helm's action.Configuration once in k8s.NewClient so that all the schemes get registered before cilium-cli starts using the k8s.Client. According to https://github.com/kubernetes/apimachinery/blob/c9b3b3a37189129d0d80b894dc5d393ade9d3b79/pkg/runtime/scheme.go#L44-L45 runtime.Scheme is not thread-safe until the registration is complete. Fixes: #1794 Signed-off-by: Michi Mutsuzaki <[email protected]>
6837189
to
d0aae28
Compare
2 commits:
action.Configuration
ink8s.NewClient
.this time i tested the fix locally. without this fix, i hit #1794 after ~5 minutes by running
cilium status --wait
repeatedly in a loop. with this fix, it hasn't hit the issue for more than 2 hours.