Merge pull request #110 from raulcabello/azure-webhook

Add azure webhooks doc
This commit is contained in:
Raul Cabello Martin 2024-01-16 18:06:48 +01:00 committed by GitHub
commit cf096d1201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 7 deletions

View File

@ -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.