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 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
Click to show internal directories.
Click to hide internal directories.