Runners to protected branches are not allocating correctly. Here is my use case and steps to deploy runners:
- I am using two runners say
runner-ai want to use for gitlab protected branches
runner-bi want to use for gitlab non protected branches.
- Now I have deployed
runner-bwith the same configuration.
- Now i go to my gitlab repo > settings > ci/cd > runners
- Click on
runner-apod and click on edit button and set
This runner will only run on pipelines triggered on protected branchesto true then save.
After this deployment, all pipeline from protected branch should assign to
runner-a but almost every pipeline is getting assign to
runner-b instead of
Although i found a hacky solution -> Everything works fine if I deploy
runner-b first and then
runner-a in above deployment process.
Can someone tell me why we are getting this weird issue? If this is really an runner allocation issue, should i raise a bug on
Note: I am executing gitlab runner using helm chart and Kubernetes executer.