@@ -16,10 +16,9 @@ bases:
16
16
- ../crd
17
17
- ../rbac
18
18
- ../manager
19
- # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in crd/kustomization.yaml
20
- # - ../webhook
21
- # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
22
- # - ../certmanager
19
+ - ../webhook
20
+ - ../certmanager
21
+ # - ../prometheus
23
22
24
23
patchesStrategicMerge :
25
24
# Protect the /metrics endpoint by putting it behind auth.
@@ -32,41 +31,34 @@ patchesStrategicMerge:
32
31
# Only one of manager_auth_proxy_patch.yaml and
33
32
# manager_prometheus_metrics_patch.yaml should be enabled.
34
33
# - manager_prometheus_metrics_patch.yaml
35
-
36
- # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in crd/kustomization.yaml
37
- # - manager_webhook_patch.yaml
38
-
39
- # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
40
- # Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.
41
- # 'CERTMANAGER' needs to be enabled to use ca injection
42
- # - webhookcainjection_patch.yaml
34
+ - manager_webhook_patch.yaml
35
+ - webhookcainjection_patch.yaml
43
36
44
37
# the following config is for teaching kustomize how to do var substitution
45
38
vars :
46
- # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
47
- # - name: CERTIFICATE_NAMESPACE # namespace of the certificate CR
48
- # objref:
49
- # kind: Certificate
50
- # group: certmanager.k8s.io
51
- # version: v1alpha1
52
- # name: serving-cert # this name should match the one in certificate.yaml
53
- # fieldref:
54
- # fieldpath: metadata.namespace
55
- # - name: CERTIFICATE_NAME
56
- # objref:
57
- # kind: Certificate
58
- # group: certmanager.k8s.io
59
- # version: v1alpha1
60
- # name: serving-cert # this name should match the one in certificate.yaml
61
- # - name: SERVICE_NAMESPACE # namespace of the service
62
- # objref:
63
- # kind: Service
64
- # version: v1
65
- # name: webhook-service
66
- # fieldref:
67
- # fieldpath: metadata.namespace
68
- # - name: SERVICE_NAME
69
- # objref:
70
- # kind: Service
71
- # version: v1
72
- # name: webhook-service
39
+ - name : CERTIFICATE_NAMESPACE # namespace of the certificate CR
40
+ objref :
41
+ kind : Certificate
42
+ group : cert-manager.io
43
+ version : v1alpha2
44
+ name : serving-cert # this name should match the one in certificate.yaml
45
+ fieldref :
46
+ fieldpath : metadata.namespace
47
+ - name : CERTIFICATE_NAME
48
+ objref :
49
+ kind : Certificate
50
+ group : cert-manager.io
51
+ version : v1alpha2
52
+ name : serving-cert # this name should match the one in certificate.yaml
53
+ - name : SERVICE_NAMESPACE # namespace of the service
54
+ objref :
55
+ kind : Service
56
+ version : v1
57
+ name : webhook-service
58
+ fieldref :
59
+ fieldpath : metadata.namespace
60
+ - name : SERVICE_NAME
61
+ objref :
62
+ kind : Service
63
+ version : v1
64
+ name : webhook-service
0 commit comments