v1alpha1

package
v0.0.0-...-0b89419 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the exithandler v1alpha1 API group +k8s:defaulter-gen=TypeMeta +groupName=custom.tekton.dev

Index

Constants

This section is empty.

Variables

View Source
var (

	// AddToScheme adds Build types to the scheme.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: exithandler.GroupName, Version: exithandler.Version}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ExitHandler

type ExitHandler struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata"`

	// Spec holds the desired state of the ExitHandler from the client
	// +optional
	Spec ExitHandlerSpec `json:"spec"`
}

ExitHandler iteratively executes a Task over elements in an array.

func (*ExitHandler) DeepCopy

func (in *ExitHandler) DeepCopy() *ExitHandler

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExitHandler.

func (*ExitHandler) DeepCopyInto

func (in *ExitHandler) DeepCopyInto(out *ExitHandler)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExitHandler) DeepCopyObject

func (in *ExitHandler) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExitHandler) SetDefaults

func (tl *ExitHandler) SetDefaults(ctx context.Context)

SetDefaults set any defaults for the ExitHandler

func (*ExitHandler) Validate

func (eh *ExitHandler) Validate(ctx context.Context) *apis.FieldError

Validate ExitHandler

type ExitHandlerList

type ExitHandlerList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ExitHandler `json:"items"`
}

ExitHandlerList contains a list of ExitHandlers

func (*ExitHandlerList) DeepCopy

func (in *ExitHandlerList) DeepCopy() *ExitHandlerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExitHandlerList.

func (*ExitHandlerList) DeepCopyInto

func (in *ExitHandlerList) DeepCopyInto(out *ExitHandlerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExitHandlerList) DeepCopyObject

func (in *ExitHandlerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExitHandlerRunReason

type ExitHandlerRunReason string

ExitHandlerRunReason represents a reason for the Run "Succeeded" condition

const (
	// ExitHandlerRunReasonStarted is the reason set when the Run has just started
	ExitHandlerRunReasonStarted ExitHandlerRunReason = "Started"

	// ExitHandlerRunReasonCacheHit indicates that the Run result was fetched from cache instead of performing an actual run.
	ExitHandlerRunReasonCacheHit ExitHandlerRunReason = "CacheHit"

	// ExitHandlerRunReasonRunning indicates that the Run is in progress
	ExitHandlerRunReasonRunning ExitHandlerRunReason = "Running"

	// ExitHandlerRunReasonFailed indicates that one of the TaskRuns created from the Run failed
	ExitHandlerRunReasonFailed ExitHandlerRunReason = "Failed"

	// ExitHandlerRunReasonSucceeded indicates that all of the TaskRuns created from the Run completed successfully
	ExitHandlerRunReasonSucceeded ExitHandlerRunReason = "Succeeded"

	// ExitHandlerRunReasonCancelled indicates that a Run was cancelled.
	ExitHandlerRunReasonCancelled ExitHandlerRunReason = "ExitHandlerRunCancelled"

	// ExitHandlerRunReasonCouldntCancel indicates that a Run was cancelled but attempting to update
	// the running TaskRun as cancelled failed.
	ExitHandlerRunReasonCouldntCancel ExitHandlerRunReason = "ExitHandlerRunCouldntCancel"

	// ExitHandlerRunReasonCouldntGetExitHandler indicates that the associated ExitHandler couldn't be retrieved
	ExitHandlerRunReasonCouldntGetExitHandler ExitHandlerRunReason = "CouldntGetExitHandler"

	// ExitHandlerRunReasonFailedValidation indicates that the ExitHandler failed runtime validation
	ExitHandlerRunReasonFailedValidation ExitHandlerRunReason = "ExitHandlerValidationFailed"

	// ExitHandlerRunReasonInternalError indicates that the ExitHandler failed due to an internal error in the reconciler
	ExitHandlerRunReasonInternalError ExitHandlerRunReason = "ExitHandlerInternalError"
)

func (ExitHandlerRunReason) String

func (t ExitHandlerRunReason) String() string

type ExitHandlerRunStatus

type ExitHandlerRunStatus struct {
	// current running pipelinerun number
	// Child PipelineRun name
	ChildPipelineRun string `json:"childPipelineRun,omitempty"`
}

ExitHandlerRunStatus contains the status stored in the ExtraFields of a Run that references a ExitHandler.

func (*ExitHandlerRunStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExitHandlerRunStatus.

func (*ExitHandlerRunStatus) DeepCopyInto

func (in *ExitHandlerRunStatus) DeepCopyInto(out *ExitHandlerRunStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExitHandlerSpec

type ExitHandlerSpec struct {
	// TaskRef is a reference to a task definition.
	// +optional
	// TaskRef     *v1.TaskRef     `json:"taskRef,omitempty"`
	PipelineRef *tektonv1.PipelineRef `json:"pipelineRef,omitempty"`

	// TaskSpec is a specification of a task
	// +optional
	PipelineSpec *tektonv1.PipelineSpec `json:"pipelineSpec,omitempty"`

	// PodTemplate holds pod specific configuration
	// +optional
	PodTemplate *pod.PodTemplate `json:"podTemplate,omitempty"`
}

ExitHandlerSpec defines the desired state of the ExitHandler

func (*ExitHandlerSpec) DeepCopy

func (in *ExitHandlerSpec) DeepCopy() *ExitHandlerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExitHandlerSpec.

func (*ExitHandlerSpec) DeepCopyInto

func (in *ExitHandlerSpec) DeepCopyInto(out *ExitHandlerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExitHandlerSpec) SetDefaults

func (ehs *ExitHandlerSpec) SetDefaults(ctx context.Context)

SetDefaults set any defaults for the ExitHandler spec

func (*ExitHandlerSpec) Validate

func (ehs *ExitHandlerSpec) Validate(ctx context.Context) *apis.FieldError

Validate ExitHandlerSpec

Jump to

Keyboard shortcuts

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