@@ -22,31 +22,18 @@ resources:
2222 # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
2323 # crd/kustomization.yaml
2424 - ../webhook
25- # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
25+ # [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
26+ # - ../prometheus
27+
28+ components :
29+ # To disable cert-manager comment out the following line, the 'webhook' component is required
2630 - ../certmanager
27- # [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
28- # - ../prometheus
2931
3032patches :
3133 # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
3234 # crd/kustomization.yaml
3335 - path : controller_webhook_patch.yaml
3436
35- # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
36- # Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.
37- # 'CERTMANAGER' needs to be enabled to use ca injection
38- # This patch add annotation to admission webhook config and
39- # the variables $(CERTIFICATE_NAMESPACE) and $(CERTIFICATE_NAME) will be substituted by kustomize.
40- - target :
41- kind : (MutatingWebhookConfiguration|ValidatingWebhookConfiguration)
42- patch : |-
43- apiVersion: admissionregistration.k8s.io/v1
44- kind: dummy
45- metadata:
46- name: webhook
47- annotations:
48- cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
49-
5037# the following config is for teaching kustomize how to do var substitution
5138vars :
5239 # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
0 commit comments