Skip to content

Commit f98455d

Browse files
committed
explicitly patch service for webhook
Signed-off-by: Haoyu Sun <[email protected]>
1 parent d3db26a commit f98455d

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

bundle/manifests/lightspeed-operator-controller-manager-service_v1_service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ metadata:
1515
name: lightspeed-operator-controller-manager-service
1616
spec:
1717
ports:
18+
- name: webhook
19+
port: 443
20+
protocol: TCP
21+
targetPort: webhook
1822
- name: metrics
1923
port: 8443
2024
protocol: TCP

config/crd/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resources:
55
- bases/ols.openshift.io_olsconfigs.yaml
66
#+kubebuilder:scaffold:crdkustomizeresource
77

8-
patches:
8+
# patches:
99
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1010
# patches here are for enabling the conversion webhook for each CRD
1111
# - path: patches/webhook_in_olsconfigs.yaml

config/default/manager_webhook_patch.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@ spec:
2121
secret:
2222
defaultMode: 420
2323
secretName: webhook-server-cert
24+
---
25+
apiVersion: v1
26+
kind: Service
27+
metadata:
28+
name: controller-manager-service
29+
namespace: system
30+
spec:
31+
ports:
32+
- name: webhook
33+
port: 443
34+
protocol: TCP
35+
targetPort: webhook

0 commit comments

Comments
 (0)