Open ZacharyU-1 opened 1 year ago
Try examining the secret created and comparing. All the cli does is create a secret for the cluster that Argo picks up on.
I too am seeing this issue, any update or resolution found here?
🙏
Hi I post the same question, I solve this situation with this steps:
After authenticate in https://localhost:8080/api/v1/session
argo endpoint (with arago username and password) you receive a token from argo {"token": "xxx"}
.
If you use an external IdP, you should be use the jwt token from the IdP as argo token and skip this step.
After that, in the https://localhost:8080/api/v1/clusters?upsert=true
endpoint, you'll need the token if you use an external IdP provider. The token is provided from the provider. And the argo token as header Cookie:argocd.token=xxx
{
"server": "https://endpoint",
"name": "cluster-name",
"config": {
"bearerToken": "idp-jwt-token-xxx",
"tlsClientConfig": {
"insecure": false,
"caData": "your-cluster-ca-xxx"
}
},
"info": {
"serverVersion": "1.21+"
}
}
I hope this response helps!
Discussed in https://github.com/argoproj/argo-cd/discussions/7943