@@ -22,7 +22,7 @@ resources:
22
22
# crd/kustomization.yaml
23
23
- ../webhook
24
24
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
25
- # - ../certmanager
25
+ - ../certmanager
26
26
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
27
27
# - ../prometheus
28
28
# [METRICS] Expose the controller manager metrics service.
@@ -47,68 +47,68 @@ patches:
47
47
48
48
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
49
49
# Uncomment the following replacements to add the cert-manager CA injection annotations
50
- # replacements:
51
- # - source: # Uncomment the following block if you have a ValidatingWebhook (--programmatic-validation)
52
- # kind: Certificate
53
- # group: cert-manager.io
54
- # version: v1
55
- # name: serving-cert # This name should match the one in certificate.yaml
56
- # fieldPath: .metadata.namespace # Namespace of the certificate CR
57
- # targets:
58
- # - select:
59
- # kind: ValidatingWebhookConfiguration
60
- # fieldPaths:
61
- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
62
- # options:
63
- # delimiter: '/'
64
- # index: 0
65
- # create: true
66
- # - source:
67
- # kind: Certificate
68
- # group: cert-manager.io
69
- # version: v1
70
- # name: serving-cert # This name should match the one in certificate.yaml
71
- # fieldPath: .metadata.name
72
- # targets:
73
- # - select:
74
- # kind: ValidatingWebhookConfiguration
75
- # fieldPaths:
76
- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
77
- # options:
78
- # delimiter: '/'
79
- # index: 1
80
- # create: true
81
- #
82
- # - source: # Uncomment the following block if you have a DefaultingWebhook (--defaulting )
83
- # kind: Certificate
84
- # group: cert-manager.io
85
- # version: v1
86
- # name: serving-cert # This name should match the one in certificate.yaml
87
- # fieldPath: .metadata.namespace # Namespace of the certificate CR
88
- # targets:
89
- # - select:
90
- # kind: MutatingWebhookConfiguration
91
- # fieldPaths:
92
- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
93
- # options:
94
- # delimiter: '/'
95
- # index: 0
96
- # create: true
97
- # - source:
98
- # kind: Certificate
99
- # group: cert-manager.io
100
- # version: v1
101
- # name: serving-cert # This name should match the one in certificate.yaml
102
- # fieldPath: .metadata.name
103
- # targets:
104
- # - select:
105
- # kind: MutatingWebhookConfiguration
106
- # fieldPaths:
107
- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
108
- # options:
109
- # delimiter: '/'
110
- # index: 1
111
- # create: true
50
+ replacements :
51
+ - source : # Uncomment the following block if you have a ValidatingWebhook (--programmatic-validation)
52
+ kind : Certificate
53
+ group : cert-manager.io
54
+ version : v1
55
+ name : serving-cert # This name should match the one in certificate.yaml
56
+ fieldPath : .metadata.namespace # Namespace of the certificate CR
57
+ targets :
58
+ - select :
59
+ kind : ValidatingWebhookConfiguration
60
+ fieldPaths :
61
+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
62
+ options :
63
+ delimiter : ' /'
64
+ index : 0
65
+ create : true
66
+ - source :
67
+ kind : Certificate
68
+ group : cert-manager.io
69
+ version : v1
70
+ name : serving-cert # This name should match the one in certificate.yaml
71
+ fieldPath : .metadata.name
72
+ targets :
73
+ - select :
74
+ kind : ValidatingWebhookConfiguration
75
+ fieldPaths :
76
+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
77
+ options :
78
+ delimiter : ' /'
79
+ index : 1
80
+ create : true
81
+
82
+ - source : # Uncomment the following block if you have a DefaultingWebhook (--defaulting )
83
+ kind : Certificate
84
+ group : cert-manager.io
85
+ version : v1
86
+ name : serving-cert # This name should match the one in certificate.yaml
87
+ fieldPath : .metadata.namespace # Namespace of the certificate CR
88
+ targets :
89
+ - select :
90
+ kind : MutatingWebhookConfiguration
91
+ fieldPaths :
92
+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
93
+ options :
94
+ delimiter : ' /'
95
+ index : 0
96
+ create : true
97
+ - source :
98
+ kind : Certificate
99
+ group : cert-manager.io
100
+ version : v1
101
+ name : serving-cert # This name should match the one in certificate.yaml
102
+ fieldPath : .metadata.name
103
+ targets :
104
+ - select :
105
+ kind : MutatingWebhookConfiguration
106
+ fieldPaths :
107
+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
108
+ options :
109
+ delimiter : ' /'
110
+ index : 1
111
+ create : true
112
112
#
113
113
# - source: # Uncomment the following block if you have a ConversionWebhook (--conversion)
114
114
# kind: Certificate
@@ -141,37 +141,37 @@ patches:
141
141
# index: 1
142
142
# create: true
143
143
#
144
- # - source: # Uncomment the following block if you enable cert-manager
145
- # kind: Service
146
- # version: v1
147
- # name: webhook-service
148
- # fieldPath: .metadata.name # Name of the service
149
- # targets:
150
- # - select:
151
- # kind: Certificate
152
- # group: cert-manager.io
153
- # version: v1
154
- # fieldPaths:
155
- # - .spec.dnsNames.0
156
- # - .spec.dnsNames.1
157
- # options:
158
- # delimiter: '.'
159
- # index: 0
160
- # create: true
161
- # - source:
162
- # kind: Service
163
- # version: v1
164
- # name: webhook-service
165
- # fieldPath: .metadata.namespace # Namespace of the service
166
- # targets:
167
- # - select:
168
- # kind: Certificate
169
- # group: cert-manager.io
170
- # version: v1
171
- # fieldPaths:
172
- # - .spec.dnsNames.0
173
- # - .spec.dnsNames.1
174
- # options:
175
- # delimiter: '.'
176
- # index: 1
177
- # create: true
144
+ - source : # Uncomment the following block if you enable cert-manager
145
+ kind : Service
146
+ version : v1
147
+ name : webhook-service
148
+ fieldPath : .metadata.name # Name of the service
149
+ targets :
150
+ - select :
151
+ kind : Certificate
152
+ group : cert-manager.io
153
+ version : v1
154
+ fieldPaths :
155
+ - .spec.dnsNames.0
156
+ - .spec.dnsNames.1
157
+ options :
158
+ delimiter : ' .'
159
+ index : 0
160
+ create : true
161
+ - source :
162
+ kind : Service
163
+ version : v1
164
+ name : webhook-service
165
+ fieldPath : .metadata.namespace # Namespace of the service
166
+ targets :
167
+ - select :
168
+ kind : Certificate
169
+ group : cert-manager.io
170
+ version : v1
171
+ fieldPaths :
172
+ - .spec.dnsNames.0
173
+ - .spec.dnsNames.1
174
+ options :
175
+ delimiter : ' .'
176
+ index : 1
177
+ create : true
0 commit comments