runmgr

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// JFRTaskRunName is the name of the Tekton TaskRun in each
	// run namespace.
	JFRTaskRunName = "steward-jenkinsfile-runner"

	// JFRTaskRunStepName is the name of the step in the Tekton TaskRun that executes
	// the Jenkinsfile Runner
	JFRTaskRunStepName = "jenkinsfile-runner"
)

Variables

This section is empty.

Functions

func GetPipelineRunKeyAnnotation

func GetPipelineRunKeyAnnotation(object metav1.Object) string

GetPipelineRunKeyAnnotation returns the run key of an object

Types

type TektonRunManager added in v0.39.1

type TektonRunManager struct {
	// contains filtered or unexported fields
}

TektonRunManager is an implementation of runifc.Manager based on Tekton.

func NewTektonRunManager added in v0.39.1

func NewTektonRunManager(factory k8s.ClientFactory, secretProvider secrets.SecretProvider) *TektonRunManager

NewTektonRunManager creates a new TektonRunManager.

func (*TektonRunManager) CreateEnv added in v0.39.1

func (c *TektonRunManager) CreateEnv(ctx context.Context, pipelineRun k8s.PipelineRun, pipelineRunsConfig *cfg.PipelineRunsConfigStruct) (namespace string, auxNamespace string, err error)

CreateEnv implements runifc.Manager.

func (*TektonRunManager) CreateRun added in v0.39.1

func (c *TektonRunManager) CreateRun(ctx context.Context, pipelineRun k8s.PipelineRun, pipelineRunsConfig *cfg.PipelineRunsConfigStruct) (err error)

CreateRun implements runifc.Manager.

func (*TektonRunManager) DeleteEnv added in v0.39.1

func (c *TektonRunManager) DeleteEnv(ctx context.Context, pipelineRun k8s.PipelineRun) error

DeleteEnv creates a new TektonRunManager.

func (*TektonRunManager) DeleteRun added in v0.39.1

func (c *TektonRunManager) DeleteRun(ctx context.Context, pipelineRun k8s.PipelineRun) error

DeleteRun creates a new TektonRunManager.

func (*TektonRunManager) GetRun added in v0.39.1

func (c *TektonRunManager) GetRun(ctx context.Context, pipelineRun k8s.PipelineRun) (runifc.Run, error)

GetRun creates a new TektonRunManager.

Jump to

Keyboard shortcuts

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