Skip to content

Commit 9a1e2cd

Browse files
Merge pull request openshift#264 from shiftstack/webhook-kustomize
UPSTREAM 1686: Move webhook CA injection into webhook resource
2 parents 6b53d20 + 2aeec5f commit 9a1e2cd

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

config/default/kustomization.yaml

-13
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

+8
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)