Closed batistein closed 2 years ago
At the moment CACPPT is not working with cluster-api's v1beta1 API.
My tries by fixing this issue by registering the crd with "cluster.x-k8s.io/v1beta1: v1alpha3" in the kustomization.yaml. This leads to the following:
2021-11-01T12:53:14.996Z DEBUG events Normal {"object": {"kind":"ConfigMap","namespace":"cacppt-system","name":"controller-leader-election-cacppt","uid":"7a9f27a9-5d36-4ab5-bf93-39d7a519310f","apiVersion":"v1","resourceVersion":"12756"}, "reason": "LeaderElection", "message": "cacppt-controller-manager-548dffd658-9lgdc_8a0207b9-053e-45bd-8c0a-84bc6b4ab39a became leader"} 2021-11-01T12:53:14.996Z DEBUG events Normal {"object": {"kind":"Lease","namespace":"cacppt-system","name":"controller-leader-election-cacppt","uid":"bc3f1d08-c1ac-48a0-aa1b-19aa6abfc3f9","apiVersion":"coordination.k8s.io/v1","resourceVersion":"12757"}, "reason": "LeaderElection", "message": "cacppt-controller-manager-548dffd658-9lgdc_8a0207b9-053e-45bd-8c0a-84bc6b4ab39a became leader"} 2021-11-01T12:53:14.996Z INFO controller.taloscontrolplane Starting EventSource {"reconciler group": "controlplane.cluster.x-k8s.io", "reconciler kind": "TalosControlPlane", "source": "kind source: /, Kind="} 2021-11-01T12:53:14.996Z INFO controller.taloscontrolplane Starting EventSource {"reconciler group": "controlplane.cluster.x-k8s.io", "reconciler kind": "TalosControlPlane", "source": "kind source: /, Kind="} 2021-11-01T12:53:14.996Z INFO controller.taloscontrolplane Starting EventSource {"reconciler group": "controlplane.cluster.x-k8s.io", "reconciler kind": "TalosControlPlane", "source": "kind source: /, Kind="} 2021-11-01T12:53:14.996Z INFO controller.taloscontrolplane Starting Controller {"reconciler group": "controlplane.cluster.x-k8s.io", "reconciler kind": "TalosControlPlane"} E1101 12:53:15.028567 1 reflector.go:138] /.cache/mod/k8s.io/client-go@v0.22.1/tools/cache/reflector.go:167: Failed to watch *v1alpha3.TalosControlPlane: failed to list *v1alpha3.TalosControlPlane: Internal error occurred: error resolving resource E1101 12:53:16.352026 1 reflector.go:138] /.cache/mod/k8s.io/client-go@v0.22.1/tools/cache/reflector.go:167: Failed to watch *v1alpha3.TalosControlPlane: failed to list *v1alpha3.TalosControlPlane: Internal error occurred: error resolving resource E1101 12:53:18.339140 1 reflector.go:138] /.cache/mod/k8s.io/client-go@v0.22.1/tools/cache/reflector.go:167: Failed to watch *v1alpha3.TalosControlPlane: failed to list *v1alpha3.TalosControlPlane: Internal error occurred: error resolving resource
We're currently working on proper v1beta1 support. It's going to come with the next control plane provider release.
At the moment CACPPT is not working with cluster-api's v1beta1 API.
My tries by fixing this issue by registering the crd with "cluster.x-k8s.io/v1beta1: v1alpha3" in the kustomization.yaml. This leads to the following: