Commit b65b4e0
Renaming the webhook deployment from
* When we generate files with `controller-gen` it generates a service
called `webhook-service` and it is not configurable.
* When we deploy KMM with OLM, OLM deploys a service for the webhook
called `<webhook-deployment-name>-service.
Therefore, before this change, we were getting 2 services for the same
deployment. One generated by `controller-gen` and added to the bundle
manifests and the other one created "on the fly" by OLM.
This change will make OLM find an already existing service called
`webhook-service` in the cluster because the deployment is called
`webhook`, therefore, it won't create a second service as before.
Services in KMM's namespace before the changes:
```
kmm-operator-controller-metrics-service ClusterIP 10.129.169.25 <none> 8443/TCP 2d2h
kmm-operator-webhook-server-service ClusterIP 10.130.107.158 <none> 443/TCP 2d2h
kmm-operator-webhook-service ClusterIP 10.128.244.171 <none> 443/TCP 2d2h
```
Services in KMM's namespace after the changes:
```
kmm-operator-controller-metrics-service ClusterIP 10.99.75.82 <none> 8443/TCP 88m
kmm-operator-webhook-service ClusterIP 10.105.163.241 <none> 443/TCP 88m
```
Signed-off-by: Yoni Bettan <[email protected]>webhook-server to webhook.1 parent 8accf3d commit b65b4e0
File tree
10 files changed
+12
-12
lines changed- ci
- install-ci-hub
- install-ci
- prow
- config
- deploy-hub
- deploy
- webhook-cert
- webhook-server
- docs/mkdocs/documentation
10 files changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments