-
Epic
-
Resolution: Unresolved
-
Normal
-
None
-
rhos-18.0.1, rhos-18.0.2, rhos-18.0.3
-
None
-
Disable service level webhooks
-
4
-
S
-
False
-
-
False
-
Not Selected
-
Proposed
-
Proposed
-
To Do
-
Proposed
-
Proposed
-
0% To Do, 50% In Progress, 50% Done
-
-
Summary
Each Service Operator runs its own webhook, but those webhooks are also imported and run under the {{{}openstack-operator. This unnecessary duplication of webhook implementation results in wasted CPU cycles and additional cluster load. }}
Proposal
We can disable webhooks at the service level by setting ENABLE_WEBHOOKS=false in the Dockerfile. However, when running CI in Prow for things like Kuttl, we will need to build a bundle that has ENABLE_WEBHOOKS=true.
Steps:
- Update the Prow CI jobs script to ensure the BuildConfig passes the ENABLE_WEBHOOK=true environment variable
- Add the ARG ENABLE_WEBHOOKS to each Dockerfile with a default of false.
- Set the ENV variable in each Dockerfile to ensure this ARG is used
openstack-operator should leave this default set to true.