Skip to content

Instantly share code, notes, and snippets.

@mumoshu
Last active July 2, 2019 04:46
Show Gist options
  • Save mumoshu/342dcbfc6bd71d3c3490cd36e4482830 to your computer and use it in GitHub Desktop.
Save mumoshu/342dcbfc6bd71d3c3490cd36e4482830 to your computer and use it in GitHub Desktop.
helmfile + flagger + istio + chatops demo

Generate a random password for verifying HTTP requests from GitHub to your WebHook endpoint:

openssl rand -hex 20 > /path/to/hook_secret

Decide the GitHub repository named for the demo:

ORG=mumoshu # Replace with your org name!
REPO=$ORG/demo-$(</dev/urandom dd ibs=1 obs=1 count=9 | od -tx1 -An | tr -d ' ')

Register your ngrok endpoint as a GitHub WebHook endpoint of your repo:

GO111MODULE=off go get k8s.io/test-infra/experiment/add-hook

add-hook \
  --hmac-path=/path/to/hook_secret \
  --github-token-path=/path/to/github_token \
  --hook-url https://xxxxxx.ap.ngrok.io/hook \
  --repo $REPO \
  --confirm=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment