Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-3378

[Operator] Webhooks do not work as described in the doc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • Operator.2.1.0.GA
    • Operator.2.0.13.GA
    • operator
    • None
    • 10
    • False
    • None
    • False
    • Sprint 21

      Doc [1] says:
      genericWebHookSecret - The name of a secret for a generic webhook that can trigger a build

      [1] https://docs.redhat.com/en/documentation/red_hat_jboss_web_server/6.0/html-single/red_hat_jboss_web_server_operator/index#crd_parameter_details

      However the operator expects a secret string instead.

      Steps to reproduce:
      1. Create a WebServer

      • Use "Deployment method 2"
      • set app repo
      • set image stream and namespace
      • set generic webhook (name of the openshift secret)

      2. send a POST request:

      • URL can be found in through command:
        "oc describe buildconfig <your_build_config_name> | grep URL"
      • in the URL there is a <secret> part which is a value (not name, not base64 string) of the secret set when WebServer was created.

      Expected output - new build should start.
      Current output - nothing happens (curl returns 200)

      Tested on OCP 4.16, operator version 2.0.13

              mmadzin@redhat.com Matus Madzin
              mmadzin@redhat.com Matus Madzin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: