From ac6673ee42c20971e3f5318fd69764aefe2b995e Mon Sep 17 00:00:00 2001 From: Scott Davidson <49713135+sd109@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:40:45 +0000 Subject: [PATCH] Revert CAPO to v0.10.5 (#725) * Revert CAPO to v0.10.5 * Revert "Remove unnecessary patch of CAPO resources" This reverts commit 56465ee64d7b961792cb7aefc654682044fd2700 and is required for the rollback to CAPO v0.10.5 --- roles/clusterapi/defaults/main.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/roles/clusterapi/defaults/main.yml b/roles/clusterapi/defaults/main.yml index f5d223cd..7864a43e 100644 --- a/roles/clusterapi/defaults/main.yml +++ b/roles/clusterapi/defaults/main.yml @@ -7,7 +7,7 @@ clusterapi_core_components: "{{ clusterapi_core_repo }}/releases/download/{{ clu # The repo, version and manifest URL for the Cluster API OpenStack provider components clusterapi_openstack_repo: https://github.com/kubernetes-sigs/cluster-api-provider-openstack -clusterapi_openstack_version: v0.11.3 +clusterapi_openstack_version: v0.10.5 clusterapi_openstack_components: "{{ clusterapi_openstack_repo }}/releases/download/{{ clusterapi_openstack_version }}/infrastructure-components.yaml" # The diagnostics address for Cluster API components @@ -42,6 +42,17 @@ clusterapi_manifests: # List of patches to apply to the resources in the manifests clusterapi_patches: + # Remove the caBundle from the CAPO custom resource definitions + # It is injected by cert-manager and causes validation issues if set outside of that + # The CAPI CRDs do not have the field set in the manifests that are shipped + # The caBundle exists on every CRD _except_ openstackfloatingippools + - patch: |- + - op: remove + path: /spec/conversion/webhook/clientConfig/caBundle + target: + kind: CustomResourceDefinition + labelSelector: cluster.x-k8s.io/provider=infrastructure-openstack + name: openstack(cluster|machine).* # The manifests contain environment variable substitutions for feature gates that we do not need - patch: |- - op: replace