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

Support for Rancher managed Clusters #299

Open
PrymalInstynct opened this issue Jan 3, 2025 · 0 comments
Open

Support for Rancher managed Clusters #299

PrymalInstynct opened this issue Jan 3, 2025 · 0 comments

Comments

@PrymalInstynct
Copy link

Hey,

I tried to use this from a Rancher manged cluster, Installing the CACO operator on the Management "local" cluster. The logs show that CACO was finding all of the cluster configs but it is not converting them to ArgoCD Cluster Resources because the Cluster Secret type is set to Opaque by Rancher instead of cluster.x-k8s.io/secret. It appears this might be an easy adjustment in the application, but I am not a Golang expert.

Example Logs

{"level":"info","ts":"2025-01-03T21:25:15Z","logger":"capi2argo","msg":"Fetched CapiSecret","secret":{"name":"service-kubeconfig","namespace":"fleet-default"}}
{"level":"info","ts":"2025-01-03T21:25:15Z","logger":"capi2argo","msg":"Ignoring secret as it's missing proper CAPI type","secret":{"name":"service-kubeconfig","namespace":"fleet-default"},"type":"Opaque"}
{"level":"error","ts":"2025-01-03T21:25:15Z","msg":"Reconciler error","controller":"secret","controllerGroup":"","controllerKind":"Secret","Secret":{"name":"service-kubeconfig","namespace":"fleet-default"},"namespace":"fleet-default","name":"service-kubeconfig","reconcileID":"e9429731-274f-487d-97a2-770aa9b70e8c","error":"wrong secret type","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:224"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant