weaveworks/weave-gitops-enterprise

GitOps Bootstrap causes crash loop when CAPI is not installed

Opened this issue · 0 comments

Describe the bug

gitops bootstrap does not check if CAPI is installed and which causes a crash loop

│ manager {"level":"error","ts":"2023-10-18T13:12:28.446Z","logger":"controller-runtime.source","msg":"if kind is a CRD, it should be installed before calling Start","kind":"Cluster.cluster.x-k8s.io","error":"no matches for kind \"Cluster\" in  │
│ version \"cluster.x-k8s.io/v1beta1\""}                                                                                                                                                                                                             │
│ manager {"level":"error","ts":"2023-10-18T13:12:38.446Z","logger":"controller-runtime.source","msg":"if kind is a CRD, it should be installed before calling Start","kind":"Cluster.cluster.x-k8s.io","error":"no matches for kind \"Cluster\" in  │
│ version \"cluster.x-k8s.io/v1beta1\""}                                                                                                                                                                                                             │
│ manager {"level":"error","ts":"2023-10-18T13:12:48.447Z","logger":"controller-runtime.source","msg":"if kind is a CRD, it should be installed before calling Start","kind":"Cluster.cluster.x-k8s.io","error":"no matches for kind \"Cluster\" in  │
│ version \"cluster.x-k8s.io/v1beta1\""}                                                                                                                                                                                                             │
│ manager {"level":"error","ts":"2023-10-18T13:12:58.448Z","logger":"controller-runtime.source","msg":"if kind is a CRD, it should be installed before calling Start","kind":"Cluster.cluster.x-k8s.io","error":"no matches for kind \"Cluster\" in  │
│ version \"cluster.x-k8s.io/v1beta1\""}                                                                                                                                                                                                             │
│ manager {"level":"error","ts":"2023-10-18T13:13:07.739Z","msg":"Could not wait for Cache to sync","controller":"gitopscluster","controllerGroup":"gitops.weave.works","controllerKind":"GitopsCluster","error":"failed to wait for gitopscluster c │
│ aches to sync: timed out waiting for cache to be synced"}                                                                                                                                                                                          │
│ manager {"level":"info","ts":"2023-10-18T13:13:07.740Z","msg":"Stopping and waiting for non leader election runnables"}                                                                                                                            │
│ manager {"level":"info","ts":"2023-10-18T13:13:07.740Z","msg":"Stopping and waiting for leader election runnables"}                                                                                                                                │
│ manager {"level":"info","ts":"2023-10-18T13:13:07.740Z","msg":"Stopping and waiting for caches"}                                                                                                                                                   │
│ manager {"level":"info","ts":"2023-10-18T13:13:07.741Z","msg":"Stopping and waiting for webhooks"}                                                                                                                                                 │
│ manager {"level":"info","ts":"2023-10-18T13:13:07.741Z","msg":"Wait completed, proceeding to shutdown the manager"}                                                                                                                                │
│ manager {"level":"error","ts":"2023-10-18T13:13:07.741Z","logger":"setup","msg":"problem running manager","error":"failed to wait for gitopscluster caches to sync: timed out waiting for cache to be synced"}                                     │
│ Stream closed EOF for flux-system/cluster-controller-manager-77f54cc445-czhb5 (manager)                                                                                                                                

To Reproduce

Actual behaviour

The CLI to check if CAPI is installed and set the helm chart values according to the configuration

Expected behaviour

Additional context

  • Weave GitOps version:
  • Kubernetes version: