seedjobs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package seedjobs implements seed jobs configuration

Index

Constants

View Source
const (
	// UsernameSecretKey is username data key in Kubernetes secret used to create Jenkins username/password credential
	UsernameSecretKey = "username"
	// PasswordSecretKey is password data key in Kubernetes secret used to create Jenkins username/password credential
	PasswordSecretKey = "password"
	// PrivateKeySecretKey is private key data key in Kubernetes secret used to create Jenkins SSH credential
	PrivateKeySecretKey = "privateKey"

	// JenkinsCredentialTypeLabelName is label for kubernetes-credentials-provider-plugin which determine Jenkins
	// credential type
	JenkinsCredentialTypeLabelName = "jenkins.io/credentials-type"

	// AgentName is the name of seed job agent
	AgentName = "seed-job-agent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SeedJobs

type SeedJobs struct {
	configuration.Configuration
	// contains filtered or unexported fields
}

SeedJobs defines API for configuring and ensuring Jenkins Seed Jobs and Deploy Keys

func New

func New(jenkinsClient jenkinsclient.Jenkins, config configuration.Configuration, logger logr.Logger) *SeedJobs

New creates SeedJobs object

func (*SeedJobs) EnsureSeedJobs

func (s *SeedJobs) EnsureSeedJobs(jenkins *v1alpha2.Jenkins) (done bool, err error)

EnsureSeedJobs configures seed job and runs it for every entry from Jenkins.Spec.SeedJobs

func (*SeedJobs) ValidateSeedJobs added in v0.0.8

func (s *SeedJobs) ValidateSeedJobs(jenkins v1alpha2.Jenkins) ([]string, error)

ValidateSeedJobs verify seed jobs configuration

Jump to

Keyboard shortcuts

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