@@ -22,31 +22,18 @@ resources:
22
22
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
23
23
# crd/kustomization.yaml
24
24
- ../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
26
30
- ../certmanager
27
- # [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
28
- # - ../prometheus
29
31
30
32
patches :
31
33
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
32
34
# crd/kustomization.yaml
33
35
- path : controller_webhook_patch.yaml
34
36
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
-
50
37
# the following config is for teaching kustomize how to do var substitution
51
38
vars :
52
39
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
0 commit comments