Skip to content

Commit

Permalink
Fix broken CAPO CRD validation on k8s 1.31 (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor authored Sep 6, 2024
1 parent 41c9319 commit c1745bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/clusterapi/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ 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
- patch: |-
- op: remove
path: /spec/conversion/webhook/clientConfig/caBundle
target:
kind: CustomResourceDefinition
labelSelector: cluster.x-k8s.io/provider=infrastructure-openstack
# The manifests contain environment variable substitutions for feature gates that we do not need
- patch: |-
- op: replace
Expand Down

0 comments on commit c1745bf

Please sign in to comment.