pipelinerun

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix string = "pipeline-run"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface added in v0.12.0

type Interface interface {
	SetBuild(int, logr.Logger) error
	SetClean(int, logr.Logger) error
	SetDeploy(int, logr.Logger) error
	SetE2ETest(int, logr.Logger) error
	SetGeneric(int, ci.TaskType, logr.Logger) error
	SetIntTest(int, logr.Logger) error
	SetUnitTest(int, logr.Logger) error

	Parse(logr.Logger) error
	GetNamespace(ci.Task) string
	Create(context.Context, client.Client, logr.Logger) error
}

type PipelineRun

type PipelineRun struct {
	internal.WorkFlowStruct

	// Params contains list of param for PipelineRun tekton resource
	Params []tkn.Param

	// PodTemplate is use for
	// - volumes
	// - nodeSelector
	// - tolerations
	PodTemplate *tkn.PodTemplate

	GenericParams map[string][]ci.ParamSpec
}

func (*PipelineRun) Create

func (p *PipelineRun) Create(ctx context.Context, r client.Client, log logr.Logger) error

func (*PipelineRun) GetNamespace added in v0.9.0

func (p *PipelineRun) GetNamespace(task ci.Task) string

func (*PipelineRun) Parse

func (p *PipelineRun) Parse(log logr.Logger) error

func (*PipelineRun) SetBuild

func (p *PipelineRun) SetBuild(pos int, log logr.Logger) error

func (*PipelineRun) SetClean

func (p *PipelineRun) SetClean(pos int, log logr.Logger) error

func (*PipelineRun) SetDeploy

func (p *PipelineRun) SetDeploy(pos int, log logr.Logger) error

SetDeploy builds the params adn add the minio volume for the tekton pipelineRun resource param pos : use to get task part from Play to get variables

func (*PipelineRun) SetE2ETest added in v0.2.0

func (p *PipelineRun) SetE2ETest(pos int, logger logr.Logger) error

func (*PipelineRun) SetGeneric added in v0.10.0

func (p *PipelineRun) SetGeneric(pos int, taskType ci.TaskType, log logr.Logger) error

func (*PipelineRun) SetIntTest

func (p *PipelineRun) SetIntTest(pos int, log logr.Logger) error

func (*PipelineRun) SetUnitTest

func (p *PipelineRun) SetUnitTest(pos int, log logr.Logger) error

Jump to

Keyboard shortcuts

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