If GitLab is running v17.0
or greater, we need to disable expiration dates for access tokens.
If expiration date for access token keeps enabled, we have to refresh admin token manually at least yearly, or Alauda AI may stop functionally.
To disable expiration dates for new access tokens:
To generate impersonation token for admin:
aml-root
, for example).Make sure you save the newly generate token - you won't be able to access it again.
Then we create secret for gitlab admin token named aml-gitlab-admin-token under cpaas-system namespace:
${TOKEN}
with the real token saved previously.