runner

package
v1.23.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GitLabRunnerServiceAccount is the name of the service account
	// used by the GitLab Runner pod
	GitLabRunnerServiceAccount string = "gitlab-runner-sa"

	// GitLabRunnerRole is the name of the role that defines
	// permissions for the GitLab Runner service account
	GitLabRunnerRole string = "gitlab-runner-app-role"

	// GitLabRunnerRoleBinding resource assigns the role to the
	// GitLab Runner service account
	GitLabRunnerRoleBinding string = "gitlab-runner-app-rolebinding"
)
View Source
const (
	// GitLabRunnerImage has name of runner
	GitLabRunnerImage = imageName("gitlab-runner")
	// GitLabRunnerHelperImage has name of runner helper
	GitLabRunnerHelperImage = imageName("gitlab-runner-helper")
)

Variables

This section is empty.

Functions

func ConfigMap

func ConfigMap(cr *gitlabv1beta2.Runner) *corev1.ConfigMap

ConfigMap returns the runner configmap object

func MetricsService

func MetricsService(cr *gitlabv1beta2.Runner) *corev1.Service

MetricsService returns the kubernetes service object for metrics

func RegistrationTokenSecret

func RegistrationTokenSecret(cr *gitlabv1beta2.Runner) types.NamespacedName

RegistrationTokenSecret returns name of secret containing the runner-registration-token and runner-token keys

Types

type Config

type Config struct {
	Concurrent    int32
	CheckInterval int32
}

Config struct holds the values used to configure Runner Global options

type Controller added in v1.1.0

type Controller struct {

	// DEPRECATED: Should be removed when the `registration-token` is deprecated
	IsAuthToken bool
	// contains filtered or unexported fields
}

Controller is the Runner controller providing methods to build the relevant kubernetes resources

func New added in v1.1.0

func New(cr *gitlabv1beta2.Runner, isAuthToken bool) *Controller

New creates a new instance of Controller from a Runner instance

func (*Controller) Deployment added in v1.1.0

func (c *Controller) Deployment(envvars []corev1.EnvVar) (*appsv1.Deployment, error)

Deployment returns the runner deployment object

type CustomError added in v1.1.0

type CustomError string

CustomError type for defining error constants

func (CustomError) Error added in v1.1.0

func (e CustomError) Error() string

type Image added in v1.1.0

type Image struct {
	Name      string `json:"name" yaml:"name"`
	Upstream  string `json:"upstream" yaml:"upstream"`
	Certified string `json:"certified" yaml:"certified"`
}

Image represents a single microservice image

func (Image) Image added in v1.1.0

func (img Image) Image() string

Image function auto-selects image to deploy

type Release added in v1.1.0

type Release struct {
	Version string  `json:"version" yaml:"version"`
	Images  []Image `json:"images" yaml:"images"`
}

Release defines a GitLab release

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL