Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ config/crd/bases/coherence.oracle.com_coherence.yaml: kustomize $(API_GO_FILES)
$(CONTROLLER_GEN) "crd:trivialVersions=true,crdVersions={v1}" \
rbac:roleName=manager-role paths="{./api/...,./controllers/...}" \
output:crd:artifacts:config=config/crd/bases
cd config/crd && $(KUSTOMIZE) edit add label "app.kubernetes.io/version:$(VERSION)" -f
$(KUSTOMIZE) build config/crd > $(BUILD_ASSETS)/crd_v1.yaml

# ----------------------------------------------------------------------------------------------------------------------
Expand Down
23 changes: 16 additions & 7 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

# This kustomization.yaml is not intended to be run by itself,
# since it depends on service name and namespace that are out of this kustomize package.
# It should be run by config/default
resources:
- bases/coherence.oracle.com_coherence.yaml
# +kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
# patches here are for enabling the conversion webhook for each CRD
#- patches/webhook_in_coherence.yaml
# +kubebuilder:scaffold:crdkustomizewebhookpatch
Expand All @@ -20,9 +22,16 @@ configurations:
- kustomizeconfig.yaml

patchesJson6902:
- path: patches/coherence.oracle.com_coherence_crd_patch.json
target:
group: apiextensions.k8s.io
version: v1
kind: CustomResourceDefinition
name: coherence.coherence.oracle.com
- path: patches/coherence.oracle.com_coherence_crd_patch.json
target:
group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: coherence.coherence.oracle.com
version: v1

commonLabels:
app.kubernetes.io/component: crd
app.kubernetes.io/instance: coherence-operator-crd
app.kubernetes.io/name: coherence-operator
app.kubernetes.io/part-of: coherence-operator
app.kubernetes.io/version: 3.2.3