@@ -20,9 +20,9 @@ resources:
2020- ../manager
2121# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
2222# crd/kustomization.yaml
23- # - ../webhook
23+ - ../webhook
2424# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
25- # - ../certmanager
25+ - ../certmanager
2626# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
2727# - ../prometheus
2828# [METRICS] Expose the controller manager metrics service.
@@ -43,109 +43,109 @@ patches:
4343
4444# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
4545# crd/kustomization.yaml
46- # - path: manager_webhook_patch.yaml
46+ - path : manager_webhook_patch.yaml
4747
4848# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
4949# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.
5050# 'CERTMANAGER' needs to be enabled to use ca injection
51- # - path: webhookcainjection_patch.yaml
51+ - path : webhookcainjection_patch.yaml
5252
5353# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
5454# Uncomment the following replacements to add the cert-manager CA injection annotations
55- # replacements:
56- # - source: # Add cert-manager annotation to ValidatingWebhookConfiguration, MutatingWebhookConfiguration and CRDs
57- # kind: Certificate
58- # group: cert-manager.io
59- # version: v1
60- # name: serving-cert # this name should match the one in certificate.yaml
61- # fieldPath: .metadata.namespace # namespace of the certificate CR
62- # targets:
63- # - select:
64- # kind: ValidatingWebhookConfiguration
65- # fieldPaths:
66- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
67- # options:
68- # delimiter: '/'
69- # index: 0
70- # create: true
71- # - select:
72- # kind: MutatingWebhookConfiguration
73- # fieldPaths:
74- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
75- # options:
76- # delimiter: '/'
77- # index: 0
78- # create: true
79- # - select:
80- # kind: CustomResourceDefinition
81- # fieldPaths:
82- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
83- # options:
84- # delimiter: '/'
85- # index: 0
86- # create: true
87- # - source:
88- # kind: Certificate
89- # group: cert-manager.io
90- # version: v1
91- # name: serving-cert # this name should match the one in certificate.yaml
92- # fieldPath: .metadata.name
93- # targets:
94- # - select:
95- # kind: ValidatingWebhookConfiguration
96- # fieldPaths:
97- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
98- # options:
99- # delimiter: '/'
100- # index: 1
101- # create: true
102- # - select:
103- # kind: MutatingWebhookConfiguration
104- # fieldPaths:
105- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
106- # options:
107- # delimiter: '/'
108- # index: 1
109- # create: true
110- # - select:
111- # kind: CustomResourceDefinition
112- # fieldPaths:
113- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
114- # options:
115- # delimiter: '/'
116- # index: 1
117- # create: true
118- # - source: # Add cert-manager annotation to the webhook Service
119- # kind: Service
120- # version: v1
121- # name: webhook-service
122- # fieldPath: .metadata.name # namespace of the service
123- # targets:
124- # - select:
125- # kind: Certificate
126- # group: cert-manager.io
127- # version: v1
128- # fieldPaths:
129- # - .spec.dnsNames.0
130- # - .spec.dnsNames.1
131- # options:
132- # delimiter: '.'
133- # index: 0
134- # create: true
135- # - source:
136- # kind: Service
137- # version: v1
138- # name: webhook-service
139- # fieldPath: .metadata.namespace # namespace of the service
140- # targets:
141- # - select:
142- # kind: Certificate
143- # group: cert-manager.io
144- # version: v1
145- # fieldPaths:
146- # - .spec.dnsNames.0
147- # - .spec.dnsNames.1
148- # options:
149- # delimiter: '.'
150- # index: 1
151- # create: true
55+ replacements :
56+ - source : # Add cert-manager annotation to ValidatingWebhookConfiguration, MutatingWebhookConfiguration and CRDs
57+ kind : Certificate
58+ group : cert-manager.io
59+ version : v1
60+ name : serving-cert # this name should match the one in certificate.yaml
61+ fieldPath : .metadata.namespace # namespace of the certificate CR
62+ targets :
63+ - select :
64+ kind : ValidatingWebhookConfiguration
65+ fieldPaths :
66+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
67+ options :
68+ delimiter : ' /'
69+ index : 0
70+ create : true
71+ - select :
72+ kind : MutatingWebhookConfiguration
73+ fieldPaths :
74+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
75+ options :
76+ delimiter : ' /'
77+ index : 0
78+ create : true
79+ - select :
80+ kind : CustomResourceDefinition
81+ fieldPaths :
82+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
83+ options :
84+ delimiter : ' /'
85+ index : 0
86+ create : true
87+ - source :
88+ kind : Certificate
89+ group : cert-manager.io
90+ version : v1
91+ name : serving-cert # this name should match the one in certificate.yaml
92+ fieldPath : .metadata.name
93+ targets :
94+ - select :
95+ kind : ValidatingWebhookConfiguration
96+ fieldPaths :
97+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
98+ options :
99+ delimiter : ' /'
100+ index : 1
101+ create : true
102+ - select :
103+ kind : MutatingWebhookConfiguration
104+ fieldPaths :
105+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
106+ options :
107+ delimiter : ' /'
108+ index : 1
109+ create : true
110+ - select :
111+ kind : CustomResourceDefinition
112+ fieldPaths :
113+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
114+ options :
115+ delimiter : ' /'
116+ index : 1
117+ create : true
118+ - source : # Add cert-manager annotation to the webhook Service
119+ kind : Service
120+ version : v1
121+ name : webhook-service
122+ fieldPath : .metadata.name # namespace of the service
123+ targets :
124+ - select :
125+ kind : Certificate
126+ group : cert-manager.io
127+ version : v1
128+ fieldPaths :
129+ - .spec.dnsNames.0
130+ - .spec.dnsNames.1
131+ options :
132+ delimiter : ' .'
133+ index : 0
134+ create : true
135+ - source :
136+ kind : Service
137+ version : v1
138+ name : webhook-service
139+ fieldPath : .metadata.namespace # namespace of the service
140+ targets :
141+ - select :
142+ kind : Certificate
143+ group : cert-manager.io
144+ version : v1
145+ fieldPaths :
146+ - .spec.dnsNames.0
147+ - .spec.dnsNames.1
148+ options :
149+ delimiter : ' .'
150+ index : 1
151+ create : true
0 commit comments