mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-22 19:45:43 +00:00
Add GitLab HTTPS auth to bootstrap options
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
0d1600275d
commit
16f0ed548e
3 changed files with 69 additions and 25 deletions
|
|
@ -154,6 +154,22 @@ gotk bootstrap gitlab \
|
|||
--personal
|
||||
```
|
||||
|
||||
To run the bootstrap for a repository using deploy keys for authentication, you have to specify the SSH hostname:
|
||||
|
||||
```sh
|
||||
gotk bootstrap gitlab \
|
||||
--ssh-hostname=gitlab.com \
|
||||
--owner=my-gitlab-username \
|
||||
--repository=my-repository \
|
||||
--branch=master \
|
||||
--path=my-cluster
|
||||
```
|
||||
|
||||
!!! hint "Authentication"
|
||||
When providing the `--ssh-hostname`, a readonly deploy key will be added
|
||||
to your repository, otherwise your GitLab personal token will be used to
|
||||
authenticate against the HTTPS endpoint instead of SSH.
|
||||
|
||||
Run the bootstrap for a repository owned by a GitLab group:
|
||||
|
||||
```sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue