Kubernetes agent registration broken

Summary

Creating and registering a kubernetes cluster agent on gitlab fails to prompt the code to install the runner

Steps to reproduce

  • Go to https://gitlab.com/<group>/<project>/-/clusters
  • Click Connect a cluster
  • Write e name for a new agent and click Create agent
  • Click Register

What is the current bug behavior?

After clicking "Register", the page shows an error saying:

Failed to register an agent

Cannot read properties of null (reading 'project')

What is the expected correct behavior?

The page should show the helm install command with the key to install the agent in the cluster

Relevant logs and/or screenshots

gitlab

Output of checks

Possible fixes