Skip to content

Commit 298f12a

Browse files
committed
Move webhook CA injection into webhook resource
1 parent 3a621fb commit 298f12a

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

config/default/kustomization.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ patches:
1919
- path: manager_pull_policy.yaml
2020
# Enable webhook.
2121
- path: manager_webhook_patch.yaml
22-
# Inject certificate in the webhook definition.
23-
- target:
24-
group: admissionregistration.k8s.io
25-
version: v1
26-
kind: MutatingWebhookConfiguration
27-
name: mutating-webhook-configuration
28-
path: cainjection_patch.yaml
29-
- target:
30-
group: admissionregistration.k8s.io
31-
version: v1
32-
kind: ValidatingWebhookConfiguration
33-
name: validating-webhook-configuration
34-
path: cainjection_patch.yaml
3522

3623
vars:
3724
- name: CERTIFICATE_NAMESPACE # namespace of the certificate CR

config/webhook/kustomization.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@ resources:
44

55
configurations:
66
- kustomizeconfig.yaml
7+
8+
patches:
9+
# Inject certificate in the webhook definition.
10+
- target:
11+
group: admissionregistration.k8s.io
12+
version: v1
13+
name: mutating-webhook-configuration|validating-webhook-configuration
14+
path: cainjection_patch.yaml

0 commit comments

Comments
 (0)