File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -529,6 +529,7 @@ config/crd/bases/coherence.oracle.com_coherence.yaml: kustomize $(API_GO_FILES)
529
529
$(CONTROLLER_GEN ) " crd:trivialVersions=true,crdVersions={v1}" \
530
530
rbac:roleName=manager-role paths=" {./api/...,./controllers/...}" \
531
531
output:crd:artifacts:config=config/crd/bases
532
+ cd config/crd && $(KUSTOMIZE ) edit add label " app.kubernetes.io/version:$( VERSION) " -f
532
533
$(KUSTOMIZE ) build config/crd > $(BUILD_ASSETS ) /crd_v1.yaml
533
534
534
535
# ----------------------------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
1
+ apiVersion : kustomize.config.k8s.io/v1beta1
2
+ kind : Kustomization
3
+
1
4
# This kustomization.yaml is not intended to be run by itself,
2
5
# since it depends on service name and namespace that are out of this kustomize package.
3
6
# It should be run by config/default
4
7
resources :
5
8
- bases/coherence.oracle.com_coherence.yaml
6
9
# +kubebuilder:scaffold:crdkustomizeresource
7
10
8
- patchesStrategicMerge :
9
11
# patches here are for enabling the conversion webhook for each CRD
10
12
# - patches/webhook_in_coherence.yaml
11
13
# +kubebuilder:scaffold:crdkustomizewebhookpatch
@@ -20,9 +22,16 @@ configurations:
20
22
- kustomizeconfig.yaml
21
23
22
24
patchesJson6902 :
23
- - path : patches/coherence.oracle.com_coherence_crd_patch.json
24
- target :
25
- group : apiextensions.k8s.io
26
- version : v1
27
- kind : CustomResourceDefinition
28
- name : coherence.coherence.oracle.com
25
+ - path : patches/coherence.oracle.com_coherence_crd_patch.json
26
+ target :
27
+ group : apiextensions.k8s.io
28
+ kind : CustomResourceDefinition
29
+ name : coherence.coherence.oracle.com
30
+ version : v1
31
+
32
+ commonLabels :
33
+ app.kubernetes.io/component : crd
34
+ app.kubernetes.io/instance : coherence-operator-crd
35
+ app.kubernetes.io/name : coherence-operator
36
+ app.kubernetes.io/part-of : coherence-operator
37
+ app.kubernetes.io/version : 3.2.3
You can’t perform that action at this time.
0 commit comments