pipeline

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KratixResourceHashLabel = "kratix-resource-hash"
)

Variables

This section is empty.

Functions

func ConfigurePipeline

func ConfigurePipeline(obj *unstructured.Unstructured, pipelines []platformv1alpha1.Pipeline, pipelineArgs PipelineArgs, promiseName string, promiseWorkflow bool, logger logr.Logger) (*batchv1.Job, error)

func LabelsForAllPromiseWorkflows

func LabelsForAllPromiseWorkflows(promiseID string) map[string]string

func LabelsForAllResourceWorkflows

func LabelsForAllResourceWorkflows(rrID, promiseID string) map[string]string

func LabelsForConfigurePromise

func LabelsForConfigurePromise(promiseID string, requestSHA ...string) map[string]string

func LabelsForConfigureResource

func LabelsForConfigureResource(rrID, promiseID string, requestSHA ...string) map[string]string

func LabelsForDeletePromise added in v0.21.0

func LabelsForDeletePromise(promiseID string, requestSHA ...string) map[string]string

func LabelsForDeleteResource

func LabelsForDeleteResource(rrID, promiseID string, requestSHA ...string) map[string]string

func NewConfigurePromise

func NewConfigurePromise(
	unstructedPromise *unstructured.Unstructured,
	pipelines []platformv1alpha1.Pipeline,
	promiseIdentifier string,
	promiseDestinationSelectors []platformv1alpha1.PromiseScheduling,
	logger logr.Logger,
) ([]client.Object, error)

func NewConfigureResource

func NewConfigureResource(
	rr *unstructured.Unstructured,
	crdPlural string,
	pipelines []platformv1alpha1.Pipeline,
	resourceRequestIdentifier,
	promiseIdentifier string,
	promiseDestinationSelectors []platformv1alpha1.PromiseScheduling,
	promiseWorkflowSelectors *platformv1alpha1.WorkloadGroupScheduling,
	logger logr.Logger,
) ([]client.Object, error)

func NewDeletePromise added in v0.21.0

func NewDeletePromise(promise *unstructured.Unstructured, pipelines []platformv1alpha1.Pipeline) []client.Object

func NewDeleteResource added in v0.21.0

func NewDeleteResource(rr *unstructured.Unstructured, pipelines []platformv1alpha1.Pipeline, resourceRequestIdentifier, promiseIdentifier, crdPlural string) []client.Object

func PromiseLabels

func PromiseLabels(promiseID string) pipelineLabels

func ResourceLabels

func ResourceLabels(rrID, promiseID string) pipelineLabels

Types

type PipelineArgs

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

func NewPipelineArgs

func NewPipelineArgs(promiseIdentifier, resourceRequestIdentifier, namespace string) PipelineArgs

func (PipelineArgs) ConfigMapName

func (p PipelineArgs) ConfigMapName() string

func (PipelineArgs) ConfigurePipelineName

func (p PipelineArgs) ConfigurePipelineName() string

func (PipelineArgs) ConfigurePipelinePodLabels

func (p PipelineArgs) ConfigurePipelinePodLabels(objHash string) pipelineLabels

func (PipelineArgs) DeletePipelineName

func (p PipelineArgs) DeletePipelineName() string

func (PipelineArgs) DeletePipelinePodLabels

func (p PipelineArgs) DeletePipelinePodLabels() pipelineLabels

func (PipelineArgs) Labels

func (p PipelineArgs) Labels() pipelineLabels

func (PipelineArgs) Namespace

func (p PipelineArgs) Namespace() string

func (PipelineArgs) PromiseID

func (p PipelineArgs) PromiseID() string

func (PipelineArgs) RoleBindingName

func (p PipelineArgs) RoleBindingName() string

func (PipelineArgs) RoleName

func (p PipelineArgs) RoleName() string

func (PipelineArgs) ServiceAccountName

func (p PipelineArgs) ServiceAccountName() string

Jump to

Keyboard shortcuts

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