Skip to content

Commit fda1979

Browse files
authored
Merge pull request #43 from finleap-connect/fix/webhook-config-v1
Fix webhook config for crd
2 parents 0b9e0cc + 0a621b8 commit fda1979

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

charts/vault-operator/templates/crds.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ metadata:
1111
spec:
1212
conversion:
1313
strategy: Webhook
14-
webhookClientConfig:
15-
caBundle: Cg==
16-
service:
17-
name: '{{ include "vault-operator.fullname" . }}-webhook'
18-
namespace: '{{ .Release.Namespace }}'
19-
path: /convert
14+
webhook:
15+
clientConfig:
16+
caBundle: Cg==
17+
service:
18+
name: '{{ include "vault-operator.fullname" . }}-webhook'
19+
namespace: '{{ .Release.Namespace }}'
20+
path: /convert
2021
group: vault.finleap.cloud
2122
names:
2223
kind: VaultSecret

config/crd-templates/patches/crd_patch.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ metadata:
66
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/vault-operator-cert'
77
spec:
88
conversion:
9-
webhookClientConfig:
10-
service:
11-
name: '{{ include "vault-operator.fullname" . }}-webhook'
9+
webhook:
10+
clientConfig:
11+
service:
12+
name: '{{ include "vault-operator.fullname" . }}-webhook'
1213
preserveUnknownFields: false
1314

config/crd/kustomizeconfig.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ nameReference:
55
fieldSpecs:
66
- kind: CustomResourceDefinition
77
group: apiextensions.k8s.io
8-
path: spec/conversion/webhookClientConfig/service/name
8+
path: spec/conversion/webhook/clientConfig/service/name
99

1010
namespace:
1111
- kind: CustomResourceDefinition
1212
group: apiextensions.k8s.io
13-
path: spec/conversion/webhookClientConfig/service/namespace
13+
path: spec/conversion/webhook/clientConfig/service/namespace
1414
create: false
1515

1616
varReference:

config/crd/patches/webhook_in_vaultsecrets.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ 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-
namespace: system
16-
name: '{{ include "vault-operator.fullname" . }}-webhook'
17-
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: system
17+
name: '{{ include "vault-operator.fullname" . }}-webhook'
18+
path: /convert

0 commit comments

Comments
 (0)