...
1# Override CRD kustomization
2cat <<EOF >> "$1"/crd/kustomization.yaml
3# This kustomization.yaml is not intended to be run by itself,
4# since it depends on service name and namespace that are out of this kustomize package.
5# It should be run by config/default
6resources:
7- bases/redpanda.vectorized.io_clusters.yaml
8- bases/redpanda.vectorized.io_consoles.yaml
9- bases/cluster.redpanda.com_redpandas.yaml
10- bases/cluster.redpanda.com_topics.yaml
11#+kubebuilder:scaffold:crdkustomizeresource
12
13# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
14# patches here are for enabling the conversion webhook for each CRD
15#- patches/webhook_in_clusters.yaml
16#- patches/webhook_in_consoles.yaml
17#+kubebuilder:scaffold:crdkustomizewebhookpatch
18
19# [CERTMANAGER] To enable webhook, uncomment all the sections with [CERTMANAGER] prefix.
20# patches here are for enabling the CA injection for each CRD
21#- patches/cainjection_in_clusters.yaml
22#- patches/cainjection_in_consoles.yaml
23#+kubebuilder:scaffold:crdkustomizecainjectionpatch
24
25# the following config is for teaching kustomize how to do kustomization for CRDs.
26configurations:
27- kustomizeconfig.yaml
28apiVersion: kustomize.config.k8s.io/v1beta1
29kind: Kustomization
30EOF
View as plain text