Bug 1611248

Summary: Multiple webhook links appear if set more than once
Product: OpenShift Container Platform Reporter: Wenjing Zheng <wzheng>
Component: ocAssignee: Ben Parees <bparees>
Status: CLOSED ERRATA QA Contact: Wenjing Zheng <wzheng>
Severity: low Docs Contact:
Priority: medium    
Version: 3.11.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-10 09:03:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wenjing Zheng 2018-08-02 08:15:54 UTC
Description of problem:
More than one webhook links appears if set more than once:
Webhook GitHub:
        URL:    https://<cluster>/apis/build.openshift.io/v1/namespaces/xiu/buildconfigs/ruby-ex/webhooks/<secret>/github
        URL:    https://<cluster>/apis/build.openshift.io/v1/namespaces/xiu/buildconfigs/ruby-ex/webhooks/<secret>/github
        URL:    https://<cluster>/apis/build.openshift.io/v1/namespaces/xiu/buildconfigs/ruby-ex/webhooks/<secret>/github

Version-Release number of selected component (if applicable):
v3.11.0-0.10.0

How reproducible:
always

Steps to Reproduce:
1.oc new-app ruby~https://github.com/openshift/ruby-ex
2.oc set triggers bc ruby-ex --from-github
3.oc set triggers bc ruby-ex --from-github
4.oc set triggers bc ruby-ex --from-github

Actual results:
Multiple webhook link appears with different secrets, and all work.

Expected results:
Should be only one.

Additional info:

Comment 1 Ben Parees 2018-08-02 18:18:16 UTC
https://github.com/openshift/origin/pull/20525

Comment 2 Wenjing Zheng 2018-08-27 07:42:23 UTC
Verified with below version:
oc v3.11.0-0.21.0
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Comment 4 errata-xmlrpc 2019-01-10 09:03:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0024