steps

package
v1.51.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 45 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDeployOnlyPipelineDoesNotSupportBuild = errors.New("deploy pipeline does not support building components and jobs")
	ErrMissingRequiredImageTagName           = errors.New("missing required imageTagName in a component, an environmentConfig or in a pipeline argument")
)

Functions

func CreateRadixApplication added in v1.21.0

func CreateRadixApplication(radixClient radixclient.Interface, dnsConfig *dnsalias.DNSConfig, configFileContent string) (*radixv1.RadixApplication, error)

CreateRadixApplication Create RadixApplication from radixconfig.yaml content

func EmptyArgument

func EmptyArgument(argumentName string) error

EmptyArgument Argument by name cannot be empty

func NewApplyConfigStep

func NewApplyConfigStep() model.Step

NewApplyConfigStep Constructor

func NewBuildStep

func NewBuildStep(jobWaiter internalwait.JobCompletionWaiter) model.Step

NewBuildStep Constructor. jobWaiter is optional and will be set by Init(...) function if nil.

func NewDeployStep

func NewDeployStep(namespaceWatcher kube.NamespaceWatcher, radixDeploymentWatcher pipelineRunnerInternal.RadixDeploymentWatcher) model.Step

NewDeployStep Constructor

func NewPreparePipelinesStep added in v1.21.0

func NewPreparePipelinesStep(jobWaiter internalwait.JobCompletionWaiter) model.Step

NewPreparePipelinesStep Constructor. jobWaiter is optional and will be set by Init(...) function if nil.

func NewPromoteStep

func NewPromoteStep() model.Step

NewPromoteStep Constructor

func NewRunPipelinesStep added in v1.21.0

func NewRunPipelinesStep(jobWaiter internalwait.JobCompletionWaiter) model.Step

NewRunPipelinesStep Constructor. jobWaiter is optional and will be set by Init(...) function if nil.

func NonExistingComponentName

func NonExistingComponentName(appName, componentName string) error

NonExistingComponentName Component by name was not found

func NonExistingDeployment

func NonExistingDeployment(deploymentName string) error

NonExistingDeployment Deployment wasn't found

func NonExistingFromEnvironment

func NonExistingFromEnvironment(environment string) error

NonExistingFromEnvironment From environment does not exist

func NonExistingToEnvironment

func NonExistingToEnvironment(environment string) error

NonExistingToEnvironment From environment does not exist

Types

type ApplyConfigStepImplementation

type ApplyConfigStepImplementation struct {
	model.DefaultStepImplementation
	// contains filtered or unexported fields
}

ApplyConfigStepImplementation Step to apply RA

func (*ApplyConfigStepImplementation) ErrorMsg

func (cli *ApplyConfigStepImplementation) ErrorMsg(err error) string

ErrorMsg Override of default step method

func (*ApplyConfigStepImplementation) ImplementationForType

func (cli *ApplyConfigStepImplementation) ImplementationForType() pipeline.StepType

ImplementationForType Override of default step method

func (*ApplyConfigStepImplementation) Run

func (cli *ApplyConfigStepImplementation) Run(pipelineInfo *model.PipelineInfo) error

Run Override of default step method

func (*ApplyConfigStepImplementation) SucceededMsg

func (cli *ApplyConfigStepImplementation) SucceededMsg() string

SucceededMsg Override of default step method

type BuildStepImplementation

type BuildStepImplementation struct {
	model.DefaultStepImplementation
	// contains filtered or unexported fields
}

BuildStepImplementation Step to build docker image

func (*BuildStepImplementation) ErrorMsg

func (step *BuildStepImplementation) ErrorMsg(err error) string

ErrorMsg Override of default step method

func (*BuildStepImplementation) ImplementationForType

func (step *BuildStepImplementation) ImplementationForType() pipeline.StepType

ImplementationForType Override of default step method

func (*BuildStepImplementation) Init added in v1.43.13

func (step *BuildStepImplementation) Init(kubeclient kubernetes.Interface, radixclient radixclient.Interface, kubeutil *kube.Kube, prometheusOperatorClient monitoring.Interface, rr *v1.RadixRegistration)

func (*BuildStepImplementation) Run

func (step *BuildStepImplementation) Run(pipelineInfo *model.PipelineInfo) error

Run Override of default step method

func (*BuildStepImplementation) SucceededMsg

func (step *BuildStepImplementation) SucceededMsg() string

SucceededMsg Override of default step method

type DeployStepImplementation

type DeployStepImplementation struct {
	model.DefaultStepImplementation
	// contains filtered or unexported fields
}

DeployStepImplementation Step to deploy RD into environment

func (*DeployStepImplementation) ErrorMsg

func (cli *DeployStepImplementation) ErrorMsg(err error) string

ErrorMsg Override of default step method

func (*DeployStepImplementation) ImplementationForType

func (cli *DeployStepImplementation) ImplementationForType() pipeline.StepType

ImplementationForType Override of default step method

func (*DeployStepImplementation) Run

func (cli *DeployStepImplementation) Run(pipelineInfo *model.PipelineInfo) error

Run Override of default step method

func (*DeployStepImplementation) SucceededMsg

func (cli *DeployStepImplementation) SucceededMsg() string

SucceededMsg Override of default step method

type PreparePipelinesStepImplementation added in v1.21.0

type PreparePipelinesStepImplementation struct {
	model.DefaultStepImplementation
	// contains filtered or unexported fields
}

PreparePipelinesStepImplementation Step to prepare radixconfig and Tekton pipelines

func (*PreparePipelinesStepImplementation) ErrorMsg added in v1.21.0

func (cli *PreparePipelinesStepImplementation) ErrorMsg(err error) string

ErrorMsg Override of default step method

func (*PreparePipelinesStepImplementation) ImplementationForType added in v1.21.0

func (cli *PreparePipelinesStepImplementation) ImplementationForType() pipeline.StepType

ImplementationForType Override of default step method

func (*PreparePipelinesStepImplementation) Init added in v1.43.13

func (step *PreparePipelinesStepImplementation) Init(kubeclient kubernetes.Interface, radixclient radixclient.Interface, kubeutil *kube.Kube, prometheusOperatorClient monitoring.Interface, rr *radixv1.RadixRegistration)

func (*PreparePipelinesStepImplementation) Run added in v1.21.0

Run Override of default step method

func (*PreparePipelinesStepImplementation) SucceededMsg added in v1.21.0

func (cli *PreparePipelinesStepImplementation) SucceededMsg() string

SucceededMsg Override of default step method

type PromoteStepImplementation

type PromoteStepImplementation struct {
	model.DefaultStepImplementation
	// contains filtered or unexported fields
}

PromoteStepImplementation Step to promote deployment to another environment, or inside environment

func (*PromoteStepImplementation) ErrorMsg

func (cli *PromoteStepImplementation) ErrorMsg(err error) string

ErrorMsg Override of default step method

func (*PromoteStepImplementation) ImplementationForType

func (cli *PromoteStepImplementation) ImplementationForType() pipeline.StepType

ImplementationForType Override of default step method

func (*PromoteStepImplementation) Run

func (cli *PromoteStepImplementation) Run(pipelineInfo *model.PipelineInfo) error

Run Override of default step method

func (*PromoteStepImplementation) SucceededMsg

func (cli *PromoteStepImplementation) SucceededMsg() string

SucceededMsg Override of default step method

type RunPipelinesStepImplementation added in v1.21.0

type RunPipelinesStepImplementation struct {
	model.DefaultStepImplementation
	// contains filtered or unexported fields
}

RunPipelinesStepImplementation Step to run Tekton pipelines

func (*RunPipelinesStepImplementation) ErrorMsg added in v1.21.0

func (step *RunPipelinesStepImplementation) ErrorMsg(err error) string

ErrorMsg Override of default step method

func (*RunPipelinesStepImplementation) ImplementationForType added in v1.21.0

func (step *RunPipelinesStepImplementation) ImplementationForType() pipeline.StepType

ImplementationForType Override of default step method

func (*RunPipelinesStepImplementation) Init added in v1.43.13

func (step *RunPipelinesStepImplementation) Init(kubeclient kubernetes.Interface, radixclient radixclient.Interface, kubeutil *kube.Kube, prometheusOperatorClient monitoring.Interface, rr *v1.RadixRegistration)

func (*RunPipelinesStepImplementation) Run added in v1.21.0

func (step *RunPipelinesStepImplementation) Run(pipelineInfo *model.PipelineInfo) error

Run Override of default step method

func (*RunPipelinesStepImplementation) SucceededMsg added in v1.21.0

func (step *RunPipelinesStepImplementation) SucceededMsg() string

SucceededMsg Override of default step method

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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