Skip to content

Commit 63ff929

Browse files
Use CRD v1 form
kustomize also requires that we specify a namespace here, or else it won't add one
1 parent d274f0a commit 63ff929

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

config/webhook/ingressclassparams_patch.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ metadata:
77
spec:
88
conversion:
99
strategy: Webhook
10-
webhookClientConfig:
11-
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
12-
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
13-
caBundle: Cg==
14-
service:
15-
name: webhook-service
16-
path: /convert
10+
webhook:
11+
clientConfig:
12+
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
13+
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
14+
caBundle: Cg==
15+
service:
16+
namespace: default
17+
name: webhook-service
18+
path: /convert
19+
conversionReviewVersions: ["v1", "v1beta1"]

config/webhook/kustomizeconfig.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ nameReference:
1010
- kind: ValidatingWebhookConfiguration
1111
group: admissionregistration.k8s.io
1212
path: webhooks/clientConfig/service/name
13+
- group: apiextensions.k8s.io
14+
kind: CustomResourceDefinition
15+
path: spec/conversion/webhook/clientConfig/service/name
1316

1417
namespace:
1518
- kind: MutatingWebhookConfiguration

config/webhook/targetgroupbindings_patch.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ metadata:
77
spec:
88
conversion:
99
strategy: Webhook
10-
webhookClientConfig:
11-
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
12-
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
13-
caBundle: Cg==
14-
service:
15-
name: webhook-service
16-
path: /convert
10+
webhook:
11+
clientConfig:
12+
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
13+
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
14+
caBundle: Cg==
15+
service:
16+
namespace: default
17+
name: webhook-service
18+
path: /convert
19+
conversionReviewVersions: ["v1", "v1beta1"]

0 commit comments

Comments
 (0)