Skip to content

Commit 6be6112

Browse files
committed
fixed ca injection patch
1 parent c9e6bae commit 6be6112

File tree

4 files changed

+17
-28
lines changed

4 files changed

+17
-28
lines changed

spectro/generated/webhook-manifests.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
cert-manager.io/inject-ca-from: capi-webhook-system/capc-webhook-service
5+
cert-manager.io/inject-ca-from: capi-webhook-system/capc-serving-cert
66
controller-gen.kubebuilder.io/version: v0.16.5
77
labels:
88
cluster.x-k8s.io/provider: infrastructure-cloudstack
@@ -202,7 +202,7 @@ apiVersion: apiextensions.k8s.io/v1
202202
kind: CustomResourceDefinition
203203
metadata:
204204
annotations:
205-
cert-manager.io/inject-ca-from: capi-webhook-system/capc-webhook-service
205+
cert-manager.io/inject-ca-from: capi-webhook-system/capc-serving-cert
206206
controller-gen.kubebuilder.io/version: v0.16.5
207207
labels:
208208
cluster.x-k8s.io/provider: infrastructure-cloudstack
@@ -736,7 +736,7 @@ apiVersion: apiextensions.k8s.io/v1
736736
kind: CustomResourceDefinition
737737
metadata:
738738
annotations:
739-
cert-manager.io/inject-ca-from: capi-webhook-system/capc-webhook-service
739+
cert-manager.io/inject-ca-from: capi-webhook-system/capc-serving-cert
740740
controller-gen.kubebuilder.io/version: v0.16.5
741741
labels:
742742
cluster.x-k8s.io/provider: infrastructure-cloudstack
@@ -1008,7 +1008,7 @@ apiVersion: apiextensions.k8s.io/v1
10081008
kind: CustomResourceDefinition
10091009
metadata:
10101010
annotations:
1011-
cert-manager.io/inject-ca-from: capi-webhook-system/capc-webhook-service
1011+
cert-manager.io/inject-ca-from: capi-webhook-system/capc-serving-cert
10121012
controller-gen.kubebuilder.io/version: v0.16.5
10131013
labels:
10141014
cluster.x-k8s.io/provider: infrastructure-cloudstack
@@ -1298,7 +1298,7 @@ apiVersion: apiextensions.k8s.io/v1
12981298
kind: CustomResourceDefinition
12991299
metadata:
13001300
annotations:
1301-
cert-manager.io/inject-ca-from: capi-webhook-system/capc-webhook-service
1301+
cert-manager.io/inject-ca-from: capi-webhook-system/capc-serving-cert
13021302
controller-gen.kubebuilder.io/version: v0.16.5
13031303
labels:
13041304
cluster.x-k8s.io/provider: infrastructure-cloudstack
@@ -2074,7 +2074,7 @@ apiVersion: apiextensions.k8s.io/v1
20742074
kind: CustomResourceDefinition
20752075
metadata:
20762076
annotations:
2077-
cert-manager.io/inject-ca-from: capi-webhook-system/capc-webhook-service
2077+
cert-manager.io/inject-ca-from: capi-webhook-system/capc-serving-cert
20782078
controller-gen.kubebuilder.io/version: v0.16.5
20792079
labels:
20802080
cluster.x-k8s.io/provider: infrastructure-cloudstack
@@ -2239,7 +2239,7 @@ apiVersion: apiextensions.k8s.io/v1
22392239
kind: CustomResourceDefinition
22402240
metadata:
22412241
annotations:
2242-
cert-manager.io/inject-ca-from: capi-webhook-system/capc-webhook-service
2242+
cert-manager.io/inject-ca-from: capi-webhook-system/capc-serving-cert
22432243
controller-gen.kubebuilder.io/version: v0.16.5
22442244
labels:
22452245
cluster.x-k8s.io/provider: infrastructure-cloudstack
@@ -2917,7 +2917,7 @@ apiVersion: apiextensions.k8s.io/v1
29172917
kind: CustomResourceDefinition
29182918
metadata:
29192919
annotations:
2920-
cert-manager.io/inject-ca-from: capi-webhook-system/capc-webhook-service
2920+
cert-manager.io/inject-ca-from: capi-webhook-system/capc-serving-cert
29212921
controller-gen.kubebuilder.io/version: v0.16.5
29222922
labels:
29232923
cluster.x-k8s.io/provider: infrastructure-cloudstack

spectro/webhook/certificate_patch.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

spectro/webhook/kustomization.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# Adds namespace to all resources.
22
namespace: capi-webhook-system
3-
# Value of this field is prepended to the
4-
# names of all resources, e.g. a deployment named
5-
# "wordpress" becomes "alices-wordpress".
6-
# Note that it should also match with the prefix (text before '-') of the namespace
7-
# field above.
8-
namePrefix: capc-
93

104
# Labels to add to all resources and selectors.
115
labels:
126
- pairs:
137
cluster.x-k8s.io/provider: "infrastructure-cloudstack"
148

9+
namePrefix: capc-
10+
1511
resources:
1612
- ../../config/crd
1713
- ../../config/manager
@@ -22,16 +18,18 @@ resources:
2218
vars:
2319
- name: CERTIFICATE_NAMESPACE
2420
objref:
25-
kind: Service
21+
kind: Certificate
22+
group: cert-manager.io
2623
version: v1
27-
name: webhook-service
24+
name: serving-cert
2825
fieldref:
2926
fieldpath: metadata.namespace
3027
- name: CERTIFICATE_NAME
3128
objref:
32-
kind: Service
29+
kind: Certificate
30+
group: cert-manager.io
3331
version: v1
34-
name: webhook-service
32+
name: serving-cert
3533
fieldref:
3634
fieldpath: metadata.name
3735
- name: SERVICE_NAMESPACE # namespace of the service
@@ -52,7 +50,6 @@ configurations:
5250
patches:
5351
- path: manager_webhook_patch.yaml
5452
- path: webhook_ca_injection_patch.yaml
55-
- path: certificate_patch.yaml
5653
- target:
5754
kind: Deployment
5855
name: controller-manager

spectro/webhook/webhook_ca_injection_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ kind: ValidatingWebhookConfiguration
1111
metadata:
1212
name: validating-webhook-configuration
1313
annotations:
14-
cert-manager.io/inject-ca-from: capi-webhook-system/capc-serving-cert
14+
cert-manager.io/inject-ca-from: capi-webhook-system/capc-serving-cert

0 commit comments

Comments
 (0)