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

Add webhook for Tobiko (and other test-operator CRs)

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • test-operator
    • None
    • 8
    • True
    • Hide

      None

      Show
      None
    • False

      We should introduce webhook for Tobiko (and other test-operator CRs). If possible we should try to make the webhook as generic as possible (minimize the duplicate code).

      DoD:

      • There is a webhook code for each test-operator supported CR.
      • If a CR uses workflows then the merging between the workflow and non workflow section is done in the webhook [1].
      • The webhook ensures that an error is printed out when user tries to update an already existing CR [2].

      [1] https://github.com/openstack-k8s-operators/test-operator/blob/9b7b3a98244e3e8243573809b46d5b1024b00312/controllers/tobiko_controller.go#L302
      [2] https://github.com/openstack-k8s-operators/test-operator/pull/113

      Reviews:

              rh-ee-kstrenko Katarina Strenkova
              lpiwowar Lukáš Piwowarski
              rhos-product-ciops
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: