If GitLab indicates that support for registration tokens is deprecated, it might be referring to the transition from using project registration tokens to a more streamlined method using predefined variables or instance-wide runners.
Here’s what you can do:
Use a GitLab Instance-wide Runner (for Shared Runners)
If you want to register runners on an instance-wide level, follow these steps:
-
Go to Admin Area: If you have admin permissions, you should navigate to the Admin Area of your GitLab instance (click on your profile icon in the top right corner and select "Admin Area").
-
Select Runners: In the Admin Area, look for a section labeled "Runners." Here, you'll find a registration token for shared runners.
-
Register the Runner: Use this token in your runner registration process, which may involve setting the runner in a configuration file or a Cloud-based CI/CD management tool depending on the method you are using.
Use the Project or Group Token without runnerRegistrationToken
If the message refers to not using the runner registration token directly in the Helm settings, a common practice is to set up runners within the GitLab UI or via other deployment scripts. You may be able to set the runner up directly in the GitLab UI, bypassing the manual helm execution.
If You Are Using Local or Specific Runners
If you want to deploy runners that are specific to your project or group, ensure you're following the updated best practices:
-
Use GitLab CI/CD Settings: Within the project's CI/CD settings, look for the ability to create a "Specific Runner." GitLab may guide you to execute certain commands or provide configuration that avoids the deprecated usage of the registration token.
-
Configuration via .gitlab-ci.yml: Specify your runners in your .gitlab-ci.yml file, which may include defined strategies for running jobs without explicitly using the registration token.
Confirm Your GitLab Version
Make sure to check the GitLab documentation related to the version you are using, as the functionality and best practices around runners may have evolved. You can find detailed information in the GitLab Runner documentation:
Final Note
If you still want to proceed with the Helm chart installation, consider checking for updated values or parameters recommended by GitLab for your specific version or type of runner (Kubernetes, Docker, etc.). If support for runner registration tokens is deprecated according to your GitLab version, updating your approach per the latest guidance is advisable.