-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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: x509 error when adding cluster with different cadata (Fixes #21326) #21327
base: master
Are you sure you want to change the base?
fix: x509 error when adding cluster with different cadata (Fixes #21326) #21327
Conversation
🔴 Preview Environment stopped on BunnyshellSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21327 +/- ##
==========================================
+ Coverage 55.19% 55.23% +0.03%
==========================================
Files 337 337
Lines 57058 57059 +1
==========================================
+ Hits 31496 31518 +22
+ Misses 22863 22845 -18
+ Partials 2699 2696 -3 ☔ View full report in Codecov by Sentry. |
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.
Looks good overall, move adding user to a different PR and resolve the merge conflict.
Signed-off-by: Amin Arefzadeh <[email protected]>
094d7ef
to
2e6763c
Compare
Hi Andrii, Can you tell me what is the status of this PR? If there is any problem, please tell me so I can resolve it. |
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.
The changes look good to me though. However, I'd suggest adding a description for this PR on what error were you typically getting earlier/or consider raising an issue for the same.
Thanks for your feedback. I have updated the description of this PR and described the bug we are trying to fix. |
I have also built these changes and tested them in my local environment, and it seems like the problem has been fixed. |
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.
Left some minor comments, overall LGTM!
Signed-off-by: Amin Arefzadeh <[email protected]>
1676745
to
995035d
Compare
Thanks for the suggestions, I have applied them in the latest commit. |
Hello again @nitishfy. Do you happen to have any update on this PR? |
Fixes #21326
Describe the bug
We want to add a new cluster using ArgoCD cli with
--cluster-endpoint kube-public
option. The problem is, Argo uses the endpoint specified in kube-public config, but it does not use the certificate_authority_data associated with this endpoint, instead it uses the ca_data in kube config, And this will produce x509 error when adding a new cluster.To Reproduce
Adding a cluster using Argocd cli with
--cluster-endpoint kube-public
option. When certificate_authority_data is different in kubeconfig and kube-public.Version
Checklist: