Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-42372

Network: Move feature gate validations into the reconciliation loop

XMLWordPrintable

    • no-feature-gate-webhooks
    • 77
    • To Do
    • CNV-38613 - 2024 Code Quality
    • CNV-386132024 Code Quality

      Goal

      Since webhooks are racy and fragile, feature gate validation should not depend on them

      User Stories

      • As a VM owner I would like to see my VM report a clear condition in case it requests a feature that is currently gated out.
      • As a cluster admin, I would like to turn OpenShift Virtualization feature gates on and off whenever I see this fit, regardless if VMs using this feature are currently define or running. I expect such VMs to report a clear condition and eventually stop.
      • As a software architect, I would like to limit the usage of webhooks. Validations must take place in a reconcile loop and reported in VM status. In rare cases when there is a clear benefit for users, quick-though-racy feedback from webhook is acceptable. Yet nothing should depend on it succeeding.

      Non-Requirements

      • List of things not included in this epic, to alleviate any doubt raised during the grooming process.

      Notes

      Race Condition Example

      • VM owner starts a VM that requires feature X
      • Webhook ensures that feature X is enabled
      • Cluster admin disables feature
      • VMI starts with feature X despite it being disabled.

              phoracek@redhat.com Petr Horacek
              dkenigsb@redhat.com Dan Kenigsberg
              Yossi Segev Yossi Segev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: