Documentation ¶
Index ¶
- Constants
- func GetPipelineRunKeyAnnotation(object metav1.Object) string
- type TektonRunManager
- func (c *TektonRunManager) CreateEnv(ctx context.Context, pipelineRun k8s.PipelineRun, ...) (namespace string, auxNamespace string, err error)
- func (c *TektonRunManager) CreateRun(ctx context.Context, pipelineRun k8s.PipelineRun, ...) (err error)
- func (c *TektonRunManager) DeleteEnv(ctx context.Context, pipelineRun k8s.PipelineRun) error
- func (c *TektonRunManager) DeleteRun(ctx context.Context, pipelineRun k8s.PipelineRun) error
- func (c *TektonRunManager) GetRun(ctx context.Context, pipelineRun k8s.PipelineRun) (runifc.Run, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.