8000 fix(ingress): github webhooks weren't being updated on `jx upgrade ingress` by agentgonzo · Pull Request #2605 · jenkins-x/jx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(ingress): github webhooks weren't being updated on jx upgrade ingress #2605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 7, 2019
Merged

fix(ingress): github webhooks weren't being updated on jx upgrade ingress #2605

merged 2 commits into from
Jan 7, 2019

Conversation

agentgonzo
Copy link

jx upgrade ingress wasn't correctly setting the webhooks in github.
It was incorrectly checking whether the webhook matched the new URL (that you were trying to set it to)

fixes #2018

}

if isProwEnabled {
webHookArgs.Secret = string(hmacToken.Data["hmac"])
}

log.Infof("Updating WebHook with new args\n")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lead to confusion when nothing actually happened (see @jtnord 's comments) and is better removed as we have sufficient logging in the UpdateWebHook method

@agentgonzo agentgonzo requested a review from jtnord January 7, 2019 11:09
@agentgonzo
Copy link
Author

/retest

Copy link
@jtnord jtnord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@jenkins-x-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jtnord

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@agentgonzo
Copy link
Author

/retest

@jenkins-x-bot jenkins-x-bot merged commit 33455d6 into jenkins-x:master Jan 7, 2019
@agentgonzo agentgonzo deleted the 2018-upgrade-ingress branch January 11, 2019 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jx upgrade ingress should update the environment webhooks
3 participants
0