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 ¶
var (
// AddToScheme adds Build types to the scheme.
AddToScheme = schemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: kfptask.GroupName, Version: kfptask.Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KfpTask.
func (*KfpTask) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KfpTask) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KfpTask) SetDefaults ¶
SetDefaults set any defaults for the ExitHandler
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