Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateRunner ¶
func CreateRunner(ctx *pulumi.Context, args *GitLabRunnerArgs) (pulumi.StringOutput, error)
CreateRunner creates a GitLab UserRunner via Pulumi and returns auth token. This function should be called during Pulumi stack deployment (inside deploy() functions). Supports both project runners (with ProjectID) and group runners (with GroupID).
func Init ¶
func Init(args *GitLabRunnerArgs)
func SetAuthToken ¶
func SetAuthToken(token string)
SetAuthToken sets the authentication token in the global runner args. This is called during Pulumi deployment after the runner is created.
Types ¶
type GitLabRunnerArgs ¶
type GitLabRunnerArgs struct {
GitLabToken string // Token with create_runner scope (PAT, group/project access token, or service account token)
ProjectID string // GitLab project ID for project runner registration (mutually exclusive with GroupID)
GroupID string // GitLab group ID for group runner registration (mutually exclusive with ProjectID)
URL string // GitLab instance URL (e.g., https://gitlab.com)
Tags []string // Runner tags for job routing (e.g., ["linux", "aws", "spot"])
Name string // Runner name/description (auto-generated from run ID)
Platform *Platform // Target platform
Arch *Arch // Target architecture
User string // OS user to run as (only used when Unsecure is true)
AuthToken string // Runner authentication token (set by Pulumi during deployment)
Unsecure bool // When false (default) a dedicated gitlab-runner system user is created; when true the runner service runs as User
Concurrent int // Maximum number of concurrent jobs (written to config.toml; 0 means leave at default of 1)
LogToJournald bool // When true, sets Podman log_driver=journald so CI job output is captured by systemd journal for OTel correlation
// PowerVSRegion is set only by the IBM Power (PowerVS) provider from the
// deployment region (e.g. us-south). It enables the Power-specific podman
// networking configuration in the Linux setup script (subnet DNS and MTU,
// non-conflicting nested subnet, shared host network). An empty value —
// every other target — preserves the existing behavior.
PowerVSRegion string
// PowerVSDNS carries the DNS resolvers configured on the target PowerVS
// subnet, read at deploy time. Site resolvers are not hardcoded in this
// repository, so any workspace and region works.
PowerVSDNS []string
// PowerVSMTU carries the MTU configured on the target PowerVS subnet. The
// setup script applies it to the shared podman network, because the
// runner's network_mtu key has no effect in network_mode "podman".
PowerVSMTU int
}
func GetRunnerArgs ¶
func GetRunnerArgs() *GitLabRunnerArgs
func (*GitLabRunnerArgs) GetSetupScriptTemplate ¶
func (args *GitLabRunnerArgs) GetSetupScriptTemplate() string
func (*GitLabRunnerArgs) GetUserDataValues ¶
func (args *GitLabRunnerArgs) GetUserDataValues() *integrations.UserDataValues