Tooling to create a config directory for a new agent setup

Problem to solve

As a DevOps Engineer, I want a command or UI to populate an agent configuration directory in order to bootstrap a new GitLab Kubernetes Agent.

Given that I don't have an IaC project yet
When I run a specific command
And I authenticate with GitLab
And I provide the project name
And I provide the project slug
Then I get a new project 
And a commit with an agent configuration directory
Given that I have a project to be used for agent configuration
When I run a specific command
And I authenticate with GitLab
And I provide the project slug
And I provide a name for the new agent
Then a new commit is added to the project that creates an agent configuration directory

Intended users

User experience goal

Provide an easy to use and familiar way to bootstrap a new GitLab Kubernetes Agent configuration during the Agent setup flow.

Proposal

Auto-commit the default agent configuration to the agent config repo

We can use the following commit message

Configuration directory for agent <agent name>

This commit was created by GitLab Kubernetes
cluster attachment wizard.

Provide a ready to run script

Like npx gitlab/gitlab-kubernetes-agent bootstrap https://gitlab.com/my-org/agent-config-project

Other ideas?

Provide the host name of kas on agentk registration/setup

...

Further details

Permissions and Security

Documentation

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

Edited by Viktor Nagy (GitLab)