@@ -9,10 +9,12 @@ namespace: project-v4-with-grafana-system
9
9
namePrefix : project-v4-with-grafana-
10
10
11
11
# Labels to add to all resources and selectors.
12
- # commonLabels:
13
- # someName: someValue
12
+ # labels:
13
+ # - includeSelectors: true
14
+ # pairs:
15
+ # someName: someValue
14
16
15
- bases :
17
+ resources :
16
18
- ../crd
17
19
- ../rbac
18
20
- ../manager
@@ -41,32 +43,102 @@ patchesStrategicMerge:
41
43
# 'CERTMANAGER' needs to be enabled to use ca injection
42
44
# - webhookcainjection_patch.yaml
43
45
44
- # the following config is for teaching kustomize how to do var substitution
45
- vars :
46
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: cert-manager.io
51
- # version: v1
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: cert-manager.io
59
- # version: v1
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
47
+ # Uncomment the following replacements to add the cert-manager CA injection annotations
48
+ # replacements:
49
+ # - source: # Add cert-manager annotation to ValidatingWebhookConfiguration, MutatingWebhookConfiguration and CRDs
50
+ # kind: Certificate
51
+ # group: cert-manager.io
52
+ # version: v1
53
+ # name: serving-cert # this name should match the one in certificate.yaml
54
+ # fieldPath: .metadata.namespace # namespace of the certificate CR
55
+ # targets:
56
+ # - select:
57
+ # kind: ValidatingWebhookConfiguration
58
+ # fieldPaths:
59
+ # - .metadata.annotations.[cert-manager.io/inject-ca-from]
60
+ # options:
61
+ # delimiter: '/'
62
+ # index: 0
63
+ # create: true
64
+ # - select:
65
+ # kind: MutatingWebhookConfiguration
66
+ # fieldPaths:
67
+ # - .metadata.annotations.[cert-manager.io/inject-ca-from]
68
+ # options:
69
+ # delimiter: '/'
70
+ # index: 0
71
+ # create: true
72
+ # - select:
73
+ # kind: CustomResourceDefinition
74
+ # fieldPaths:
75
+ # - .metadata.annotations.[cert-manager.io/inject-ca-from]
76
+ # options:
77
+ # delimiter: '/'
78
+ # index: 0
79
+ # create: true
80
+ # - source:
81
+ # kind: Certificate
82
+ # group: cert-manager.io
83
+ # version: v1
84
+ # name: serving-cert # this name should match the one in certificate.yaml
85
+ # fieldPath: .metadata.name
86
+ # targets:
87
+ # - select:
88
+ # kind: ValidatingWebhookConfiguration
89
+ # fieldPaths:
90
+ # - .metadata.annotations.[cert-manager.io/inject-ca-from]
91
+ # options:
92
+ # delimiter: '/'
93
+ # index: 1
94
+ # create: true
95
+ # - select:
96
+ # kind: MutatingWebhookConfiguration
97
+ # fieldPaths:
98
+ # - .metadata.annotations.[cert-manager.io/inject-ca-from]
99
+ # options:
100
+ # delimiter: '/'
101
+ # index: 1
102
+ # create: true
103
+ # - select:
104
+ # kind: CustomResourceDefinition
105
+ # fieldPaths:
106
+ # - .metadata.annotations.[cert-manager.io/inject-ca-from]
107
+ # options:
108
+ # delimiter: '/'
109
+ # index: 1
110
+ # create: true
111
+ # - source: # Add cert-manager annotation to the webhook Service
112
+ # kind: Service
113
+ # version: v1
114
+ # name: webhook-service
115
+ # fieldPath: .metadata.name # namespace of the service
116
+ # targets:
117
+ # - select:
118
+ # kind: Certificate
119
+ # group: cert-manager.io
120
+ # version: v1
121
+ # fieldPaths:
122
+ # - .spec.dnsNames.0
123
+ # - .spec.dnsNames.1
124
+ # options:
125
+ # delimiter: '.'
126
+ # index: 0
127
+ # create: true
128
+ # - source:
129
+ # kind: Service
130
+ # version: v1
131
+ # name: webhook-service
132
+ # fieldPath: .metadata.namespace # namespace of the service
133
+ # targets:
134
+ # - select:
135
+ # kind: Certificate
136
+ # group: cert-manager.io
137
+ # version: v1
138
+ # fieldPaths:
139
+ # - .spec.dnsNames.0
140
+ # - .spec.dnsNames.1
141
+ # options:
142
+ # delimiter: '.'
143
+ # index: 1
144
+ # create: true
0 commit comments