Skip to content

Commit 496bfb4

Browse files
Merge pull request #783 from Nordix/add-skip-crd-name-check-annotation-to-m3datas/furkat
🌱 Add SkipCRDNamePreflightCheckAnnotation to Metal3Data CRD
2 parents da82c88 + 5465d45 commit 496bfb4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

config/crd/kustomization.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
4852
configurations:
4953
- kustomizeconfig.yaml
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

0 commit comments

Comments
 (0)