# 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/customdomain.apigateway.tidbcloud.com_customdomains.yaml
- bases/customdomain.apigateway.tidbcloud.com_customdomaindeployments.yaml
- bases/customdomain.apigateway.tidbcloud.com_customdomainalbs.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patches:
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
# patches here are for enabling the conversion webhook for each CRD
- path: patches/webhook_in_customdomains.yaml
#- path: patches/webhook_in_customdomaindeployments.yaml
#- path: patches/webhook_in_customdomainalbs.yaml
#+kubebuilder:scaffold:crdkustomizewebhookpatch

# [CERTMANAGER] To enable cert-manager, uncomment all the sections with [CERTMANAGER] prefix.
# patches here are for enabling the CA injection for each CRD
- path: patches/cainjection_in_customdomains.yaml
#- path: patches/cainjection_in_customdomaindeployments.yaml
#- path: patches/cainjection_in_customdomainalbs.yaml
#+kubebuilder:scaffold:crdkustomizecainjectionpatch

# the following config is for teaching kustomize how to do kustomization for CRDs.
configurations:
- kustomizeconfig.yaml
