From 69838d6a7c74c04a1fcd2298bc584710d12cf136 Mon Sep 17 00:00:00 2001 From: raul Date: Mon, 15 Jan 2024 16:12:34 +0100 Subject: [PATCH] Add azure webhooks doc --- docs/webhook.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/docs/webhook.md b/docs/webhook.md index d86e6cec5..413a24720 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -56,13 +56,15 @@ If you configured the webhook the polling interval will be automatically adjuste ### 3. (Optional) Configure webhook secret. The secret is for validating webhook payload. Make sure to put it in a k8s secret called `gitjob-webhook` in `cattle-fleet-system`. -| Provider | K8s Secret Key | -|-----------------| ---------------------------------| -| GitHub | `github` | -| GitLab | `gitlab` | -| BitBucket | `bitbucket` | -| BitBucketServer | `bitbucket-server` | -| Gogs | `gogs` | +| Provider | K8s Secret Key | +|-----------------|--------------------| +| GitHub | `github` | +| GitLab | `gitlab` | +| BitBucket | `bitbucket` | +| BitBucketServer | `bitbucket-server` | +| Gogs | `gogs` | +| Azure Devops | `azure-username` | +| Azure Devops | `azure-password` | For example, to create a secret containing a GitHub secret to validate the webhook payload, run: @@ -70,4 +72,11 @@ For example, to create a secret containing a GitHub secret to validate the webho kubectl create secret generic gitjob-webhook -n cattle-fleet-system --from-literal=github=webhooksecretvalue ``` +For Azure Devops: +- Enable basic authentication in Azure +- Create a secret containing the credentials for the basic authentication +```shell +kubectl create secret generic gitjob-webhook -n cattle-fleet-system --from-literal=azure-username=user --from-literal=azure-password=pass123 +``` + ### 4. Go to your git provider and test the connection. You should get a HTTP response code.