Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-11197

Disable service level Operator Webhooks

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhos-18.0.1, rhos-18.0.2, rhos-18.0.3
    • openstack-operator
    • None
    • Disable service level webhooks
    • 4
    • S
    • False
    • Hide

      None

      Show
      None
    • 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:

      1. Update the Prow CI jobs script to ensure the BuildConfig passes the ENABLE_WEBHOOK=true environment variable
      2. Add the ARG ENABLE_WEBHOOKS to each Dockerfile with a default of false.
      3. Set the ENV variable in each Dockerfile to ensure this ARG is used

       

      openstack-operator should leave this default set to true.

       

              Unassigned Unassigned
              rhn-support-bshephar Brendan Shephard
              rhos-dfg-ospk8s
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: