GitLab Flow with GitLab Kubernetes Agent

We have a project where branches create review apps that setup whole new Kubernetes clusters. I can use Terraform to register a GitLab Agent for the review environment, but how to get it to look in my branch for configuration? I’d rather not have to commit to main to configure agents as it disturbs our testing methodology.

Thanks for any help you can give me,

Having done some more spelunking, the agent is parameterised to look at a branch based on a call to an internal API which implies that it’s associated with a configuration around the registration token, except that that hasn’t been exposed in the token API itself.

Guess I’ll make a feature request unless the forum has any bright ideas?

Guess Add Environments support to the GitLab Agent (#352186) · Issues · / GitLab · GitLab is related