Skip to content

Commit 7e14e41

Browse files
authored
Merge pull request fluxcd#953 from swoehrl-mw/clarify-gitlab-provider-usage
Clarify gitlab notification provider usage
2 parents 5df5b78 + b72ecab commit 7e14e41

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/spec/v1beta3/providers.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1547,16 +1547,20 @@ kubectl create secret generic github-token --from-literal=token=<GITHUB-TOKEN>
15471547
#### GitLab
15481548

15491549
When `.spec.type` is set to `gitlab`, the referenced secret must contain a key called `token` with the value set to a
1550-
[GitLab personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html).
1550+
[GitLab personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html). If available group and project access tokens can also be used.
15511551

1552-
The token must have permissions to update the commit status for the GitLab repository specified in `.spec.address`.
1552+
The token must have permissions to update the commit status for the GitLab repository specified in `.spec.address` (grant it the `api` scope).
15531553

15541554
You can create the secret with `kubectl` like this:
15551555

15561556
```shell
15571557
kubectl create secret generic gitlab-token --from-literal=token=<GITLAB-TOKEN>
15581558
```
15591559

1560+
For gitlab.com and current self-hosted gitlab installations that support only the Gitlab v4 API you need to use the project ID in the address instead of the project name.
1561+
Use an address like `https://gitlab.com/1234` (with `1234` being the project ID).
1562+
You can find out the ID by opening the project in the browser and clicking on the three dot button in the top right corner. The menu that opens shows the project ID.
1563+
15601564
#### Gitea
15611565

15621566
When `.spec.type` is set to `gitea`, the referenced secret must contain a key called `token` with the value set to a

0 commit comments

Comments
 (0)