Documentation ¶
Index ¶
Constants ¶
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, serviceAccount string) (*appsv1.Deployment, error)
Deployment returns the runner deployment object
Click to show internal directories.
Click to hide internal directories.