@@ -20,9 +20,9 @@ resources:
20
20
- ../manager
21
21
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
22
22
# crd/kustomization.yaml
23
- # - ../webhook
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
@@ -34,109 +34,109 @@ patches:
34
34
35
35
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
36
36
# crd/kustomization.yaml
37
- # - path: manager_webhook_patch.yaml
37
+ - path : manager_webhook_patch.yaml
38
38
39
39
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
40
40
# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.
41
41
# 'CERTMANAGER' needs to be enabled to use ca injection
42
- # - path: webhookcainjection_patch.yaml
42
+ - path : webhookcainjection_patch.yaml
43
43
44
44
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
45
45
# Uncomment the following replacements to add the cert-manager CA injection annotations
46
- # replacements:
47
- # - source: # Add cert-manager annotation to ValidatingWebhookConfiguration, MutatingWebhookConfiguration and CRDs
48
- # kind: Certificate
49
- # group: cert-manager.io
50
- # version: v1
51
- # name: serving-cert # this name should match the one in certificate.yaml
52
- # fieldPath: .metadata.namespace # namespace of the certificate CR
53
- # targets:
54
- # - select:
55
- # kind: ValidatingWebhookConfiguration
56
- # fieldPaths:
57
- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
58
- # options:
59
- # delimiter: '/'
60
- # index: 0
61
- # create: true
62
- # - select:
63
- # kind: MutatingWebhookConfiguration
64
- # fieldPaths:
65
- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
66
- # options:
67
- # delimiter: '/'
68
- # index: 0
69
- # create: true
70
- # - select:
71
- # kind: CustomResourceDefinition
72
- # fieldPaths:
73
- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
74
- # options:
75
- # delimiter: '/'
76
- # index: 0
77
- # create: true
78
- # - source:
79
- # kind: Certificate
80
- # group: cert-manager.io
81
- # version: v1
82
- # name: serving-cert # this name should match the one in certificate.yaml
83
- # fieldPath: .metadata.name
84
- # targets:
85
- # - select:
86
- # kind: ValidatingWebhookConfiguration
87
- # fieldPaths:
88
- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
89
- # options:
90
- # delimiter: '/'
91
- # index: 1
92
- # create: true
93
- # - select:
94
- # kind: MutatingWebhookConfiguration
95
- # fieldPaths:
96
- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
97
- # options:
98
- # delimiter: '/'
99
- # index: 1
100
- # create: true
101
- # - select:
102
- # kind: CustomResourceDefinition
103
- # fieldPaths:
104
- # - .metadata.annotations.[cert-manager.io/inject-ca-from]
105
- # options:
106
- # delimiter: '/'
107
- # index: 1
108
- # create: true
109
- # - source: # Add cert-manager annotation to the webhook Service
110
- # kind: Service
111
- # version: v1
112
- # name: webhook-service
113
- # fieldPath: .metadata.name # namespace of the service
114
- # targets:
115
- # - select:
116
- # kind: Certificate
117
- # group: cert-manager.io
118
- # version: v1
119
- # fieldPaths:
120
- # - .spec.dnsNames.0
121
- # - .spec.dnsNames.1
122
- # options:
123
- # delimiter: '.'
124
- # index: 0
125
- # create: true
126
- # - source:
127
- # kind: Service
128
- # version: v1
129
- # name: webhook-service
130
- # fieldPath: .metadata.namespace # namespace of the service
131
- # targets:
132
- # - select:
133
- # kind: Certificate
134
- # group: cert-manager.io
135
- # version: v1
136
- # fieldPaths:
137
- # - .spec.dnsNames.0
138
- # - .spec.dnsNames.1
139
- # options:
140
- # delimiter: '.'
141
- # index: 1
142
- # create: true
46
+ replacements :
47
+ - source : # Add cert-manager annotation to ValidatingWebhookConfiguration, MutatingWebhookConfiguration and CRDs
48
+ kind : Certificate
49
+ group : cert-manager.io
50
+ version : v1
51
+ name : serving-cert # this name should match the one in certificate.yaml
52
+ fieldPath : .metadata.namespace # namespace of the certificate CR
53
+ targets :
54
+ - select :
55
+ kind : ValidatingWebhookConfiguration
56
+ fieldPaths :
57
+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
58
+ options :
59
+ delimiter : ' /'
60
+ index : 0
61
+ create : true
62
+ - select :
63
+ kind : MutatingWebhookConfiguration
64
+ fieldPaths :
65
+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
66
+ options :
67
+ delimiter : ' /'
68
+ index : 0
69
+ create : true
70
+ - select :
71
+ kind : CustomResourceDefinition
72
+ fieldPaths :
73
+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
74
+ options :
75
+ delimiter : ' /'
76
+ index : 0
77
+ create : true
78
+ - source :
79
+ kind : Certificate
80
+ group : cert-manager.io
81
+ version : v1
82
+ name : serving-cert # this name should match the one in certificate.yaml
83
+ fieldPath : .metadata.name
84
+ targets :
85
+ - select :
86
+ kind : ValidatingWebhookConfiguration
87
+ fieldPaths :
88
+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
89
+ options :
90
+ delimiter : ' /'
91
+ index : 1
92
+ create : true
93
+ - select :
94
+ kind : MutatingWebhookConfiguration
95
+ fieldPaths :
96
+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
97
+ options :
98
+ delimiter : ' /'
99
+ index : 1
100
+ create : true
101
+ - select :
102
+ kind : CustomResourceDefinition
103
+ fieldPaths :
104
+ - .metadata.annotations.[cert-manager.io/inject-ca-from]
105
+ options :
106
+ delimiter : ' /'
107
+ index : 1
108
+ create : true
109
+ - source : # Add cert-manager annotation to the webhook Service
110
+ kind : Service
111
+ version : v1
112
+ name : webhook-service
113
+ fieldPath : .metadata.name # namespace of the service
114
+ targets :
115
+ - select :
116
+ kind : Certificate
117
+ group : cert-manager.io
118
+ version : v1
119
+ fieldPaths :
120
+ - .spec.dnsNames.0
121
+ - .spec.dnsNames.1
122
+ options :
123
+ delimiter : ' .'
124
+ index : 0
125
+ create : true
126
+ - source :
127
+ kind : Service
128
+ version : v1
129
+ name : webhook-service
130
+ fieldPath : .metadata.namespace # namespace of the service
131
+ targets :
132
+ - select :
133
+ kind : Certificate
134
+ group : cert-manager.io
135
+ version : v1
136
+ fieldPaths :
137
+ - .spec.dnsNames.0
138
+ - .spec.dnsNames.1
139
+ options :
140
+ delimiter : ' .'
141
+ index : 1
142
+ create : true
0 commit comments