weaveworks / weave-gitops-enterprise

This repo provides the enterprise level features for the weave-gitops product, including CAPI cluster creation and team workspaces.
https://docs.gitops.weave.works/
Apache License 2.0
160 stars 29 forks source link

Local dev environment setup fails due to outdated CRD version #2177

Closed makkes closed 1 year ago

makkes commented 1 year ago

What happens?

make cluster-dev in the weave-gitops-enterprise fails to deploy the mccp chart with this error:

chart-mccp-c… │ [manager] 1.6728194683198395e+09        ERROR   controller-runtime.source       if kind is a CRD, it should be installed before calling Start      {"kind": "ClusterBootstrapConfig.capi.weave.works", "error": "no matches for kind \"ClusterBootstrapConfig\" in version \"capi.weave.works/v1alpha2\""}

If I'm not mistaken this happens because on main of cluster-bootstrap-controller the version the controller uses is v1alpha2 while the mccp chart still installs v1alpha1.

This doesn't happen on released versions because mccp's values.yaml still pulls in v0.3.0 of the bootstrap-controller image (even though v0.4.0 has released back in September 🤔).

Who is affected?

  1. Any new engineer because they will be creating a fresh clone of cluster-bootstrap-controller that uses v1alpha2.
  2. Any engineer that updates their local clone of cluster-bootstrap-controller.

Workaround

Checking out the v0.3.0 tag instead of main in the cluster-bootstrap-controller clone fixes this because that version doesn't have the v1alpha2 API.

foot commented 1 year ago

Fixed in #1510 , no longer requires checking out a local copy of the CBC to do WGE dev work.