x509: certificate signed by unknown authority error when adding cluster with kube-public option using cli #21326
Labels
bug
Something isn't working
component:cli
Affects the Argo CD CLI
version:2.13
Latest confirmed affected version is 2.13
Checklist:
argocd version
.Describe the bug
We want to add a new cluster using ArgoCD cli with
--cluster-endpoint kube-public
option. The problem is, when Argo uses the endpoint specified in kube-public config, it does not use the certificate_authority_data associated with this endpoint. And this lead to problem in adding a new cluster. This problem only happens when the certificate_authority_data are not the same in kubeconfig and kube-public.if we want to change the endpoint according to kube-public, it's logical to use the certificate_authority_data in kube-public as well, since certificate_authority_data and endpoint are related.
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, raises x509 error.Expected behavior
Must use the certificate_authority_data in kube-public and added the new cluster successfully.
Version
The text was updated successfully, but these errors were encountered: