File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ patchesStrategicMerge:
4444- patches/cainjection_in_metal3remediationtemplates.yaml
4545# +kubebuilder:scaffold:crdkustomizecainjectionpatch
4646
47+ # [ANNOTATION] To add CRD name check skip, uncomment the section with [ANNOTATION] prefix.
48+ # patch here is for adding an annotation for specific CRD (Metal3Data)
49+ - patches/skipcrdnamecheck_in_metal3datas.yaml
50+
4751# the following config is for teaching kustomize how to do kustomization for CRDs.
4852configurations :
4953- kustomizeconfig.yaml
Original file line number Diff line number Diff line change 1+ # The following patch adds "clusterctl.cluster.x-k8s.io/skip-crd-name-preflight-check"
2+ # CAPI annotation for clusterctl to inject annotation into the CRD. See more why this is needed
3+ # here: https://github.com/kubernetes-sigs/cluster-api/issues/5686#issuecomment-1238255937
4+ # CRD conversion requires k8s 1.13 or later.
5+ apiVersion : apiextensions.k8s.io/v1
6+ kind : CustomResourceDefinition
7+ metadata :
8+ annotations :
9+ clusterctl.cluster.x-k8s.io/skip-crd-name-preflight-check : " "
10+ name : metal3datas.infrastructure.cluster.x-k8s.io
You can’t perform that action at this time.
0 commit comments