Gitlab#
Not needed for *most* installs, but this is configured to integrate Lagoon with GitLab for user and group authentication.
- Create Personal Access token in GitLab for a User with Admin Access.
- Create System Hooks under `your-gitlab.com/admin/hooks` pointing to:
webhookhandler.lagoon.example.com
and define a random secret token.- Enable “repository update events”
-
Update
lagoon-core-values.yaml
:lagoon-core-values.yamlapi: additionalEnvs: GITLAB_API_HOST: <<URL of Gitlab example: https://your-gitlab.com>> GITLAB_API_TOKEN: << Personal Access token with Access to API >> GITLAB_SYSTEM_HOOK_TOKEN: << System Hook Secret Token >> webhook-haondler: additionalEnvs: GITLAB_API_HOST: <<URL of Gitlab example: https://your-gitlab.com>> GITLAB_API_TOKEN: << Personal Access token with Access to API >> GITLAB_SYSTEM_HOOK_TOKEN: << System Hook Secret Token >> webhooks2tasks: additionalEnvs: GITLAB_API_HOST: <<URL of Gitlab example: https://your-gitlab.com>> GITLAB_API_TOKEN: << Personal Access token with Access to API >> GITLAB_SYSTEM_HOOK_TOKEN: << System Hook Secret Token >>
-
Helm update the
lagoon-core
helmchart - If you've already created users in Keycloak, delete them.
- Run the following command in an API pod
yarn sync:gitlab:all