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: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the KfpTask 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: kfptask.GroupName, Version: kfptask.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 KfpTask

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

	// Spec holds the desired state of the KfpTask from the client
	Spec KfpTaskSpec `json:"spec"`
}

KfpTask merges the TaskSpecPath into TaskSpec and spawns a TaskRun.

func (*KfpTask) DeepCopy

func (in *KfpTask) DeepCopy() *KfpTask

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

func (*KfpTask) DeepCopyInto

func (in *KfpTask) DeepCopyInto(out *KfpTask)

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

func (*KfpTask) DeepCopyObject

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

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

func (*KfpTask) SetDefaults

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

SetDefaults set any defaults for the ExitHandler

func (*KfpTask) Validate

func (kt *KfpTask) Validate(ctx context.Context) *apis.FieldError

Validate KfpTask

type KfpTaskList

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

KfpTaskList contains a list of KfpTasks

func (*KfpTaskList) DeepCopy

func (in *KfpTaskList) DeepCopy() *KfpTaskList

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

func (*KfpTaskList) DeepCopyInto

func (in *KfpTaskList) DeepCopyInto(out *KfpTaskList)

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

func (*KfpTaskList) DeepCopyObject

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

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

type KfpTaskRunReason

type KfpTaskRunReason string

KfpTaskRunReason represents a reason for the Run "Succeeded" condition

const (
	// KfpTaskRunReasonStarted is the reason set when the Run has just started
	KfpTaskRunReasonStarted KfpTaskRunReason = "Started"

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

	// KfpTaskRunReasonRunning indicates that the Run is in progress
	KfpTaskRunReasonRunning KfpTaskRunReason = "Running"

	// KfpTaskRunReasonFailed indicates that one of the TaskRuns created from the Run failed
	KfpTaskRunReasonFailed KfpTaskRunReason = "Failed"

	// KfpTaskRunReasonSucceeded indicates that all of the TaskRuns created from the Run completed successfully
	KfpTaskRunReasonSucceeded KfpTaskRunReason = "Succeeded"

	// KfpTaskRunReasonCancelled indicates that a Run was cancelled.
	KfpTaskRunReasonCancelled KfpTaskRunReason = "KfpTaskRunCancelled"

	// KfpTaskRunReasonCouldntCancel indicates that a Run was cancelled but attempting to update
	// the running TaskRun as cancelled failed.
	KfpTaskRunReasonCouldntCancel KfpTaskRunReason = "KfpTaskRunCouldntCancel"

	// KfpTaskRunReasonCouldntGetKfpTask indicates that the associated KfpTask couldn't be retrieved
	KfpTaskRunReasonCouldntGetKfpTask KfpTaskRunReason = "CouldntGetKfpTask"

	// KfpTaskRunReasonFailedValidation indicates that the KfpTask failed runtime validation
	KfpTaskRunReasonFailedValidation KfpTaskRunReason = "KfpTaskalidationFailed"

	// KfpTaskRunReasonInternalError indicates that the KfpTask failed due to an internal error in the reconciler
	KfpTaskRunReasonInternalError KfpTaskRunReason = "KfpTaskInternalError"
)

func (KfpTaskRunReason) String

func (t KfpTaskRunReason) String() string

type KfpTaskRunStatus

type KfpTaskRunStatus struct {
	// current running TaskRun
	// Child TaskRun name
	ChildTaskRun string `json:"childTaskRun,omitempty"`
}

KfpTaskRunStatus contains the status stored in the ExtraFields of a Run that references a KfpTask.

func (*KfpTaskRunStatus) DeepCopy

func (in *KfpTaskRunStatus) DeepCopy() *KfpTaskRunStatus

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

func (*KfpTaskRunStatus) DeepCopyInto

func (in *KfpTaskRunStatus) DeepCopyInto(out *KfpTaskRunStatus)

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

type KfpTaskSpec

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

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

KfpTaskSpec defines the desired state of the KfpTask

func (*KfpTaskSpec) DeepCopy

func (in *KfpTaskSpec) DeepCopy() *KfpTaskSpec

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

func (*KfpTaskSpec) DeepCopyInto

func (in *KfpTaskSpec) DeepCopyInto(out *KfpTaskSpec)

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

func (*KfpTaskSpec) SetDefaults

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

SetDefaults set any defaults for the ExitHandler spec

func (*KfpTaskSpec) Validate

func (kts *KfpTaskSpec) Validate(ctx context.Context) *apis.FieldError

Validate KfpTaskSpec

Jump to

Keyboard shortcuts

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