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

fix: avoid closing and re-opening port of api server settings change #9778

Merged
merged 1 commit into from Jun 23, 2022

Conversation

alexmt
Copy link
Collaborator

@alexmt alexmt commented Jun 23, 2022

Signed-off-by: Alexander Matyushentsev AMatyushentsev@gmail.com

Closes #5742

API server restarts listeners and closes/reopens grpc connection (for grpc-gateway) on every dex/oidc related setting change that causes issues in production. The PR changes the behavior to avoid restarting listeners and only re-create server handlers.

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
@alexmt alexmt requested a review from jessesuen June 23, 2022 20:07
@alexmt alexmt marked this pull request as ready for review June 23, 2022 20:07
@codecov
Copy link

codecov bot commented Jun 23, 2022

Codecov Report

Merging #9778 (b79fe29) into master (a588e63) will decrease coverage by 0.02%.
The diff coverage is 50.74%.

@@            Coverage Diff             @@
##           master    #9778      +/-   ##
==========================================
- Coverage   45.81%   45.78%   -0.03%     
==========================================
  Files         227      227              
  Lines       26882    26904      +22     
==========================================
+ Hits        12315    12318       +3     
- Misses      12891    12908      +17     
- Partials     1676     1678       +2     
Impacted Files Coverage Δ
server/server.go 53.18% <50.74%> (-1.48%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a588e63...b79fe29. Read the comment docs.

Copy link
Member

@jessesuen jessesuen left a comment

Choose a reason for hiding this comment

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

Great!

@alexmt alexmt merged commit 9d4c940 into argoproj:master Jun 23, 2022
@alexmt alexmt deleted the api-server-settings-update branch June 23, 2022 21:30
alexmt added a commit that referenced this pull request Jun 24, 2022
…9778)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
@crenshaw-dev crenshaw-dev added the cherry-pick/2.4 Candidate for cherry picking into the 2.4 release branch label Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/2.4 Candidate for cherry picking into the 2.4 release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hot reload of dex/oidc config hangs argocd-server: Unable to load data: grpc: the client connection is closing
3 participants