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.yml
:lagoon-core-values.ymlapi: 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: