v1alpha1

package
v0.0.0-...-8ee384e Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the taskloop v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +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: taskloop.GroupName, Version: "v1alpha1"}

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 TaskLoop

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

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

TaskLoop iteratively executes a Task over elements in an array. +k8s:openapi-gen=true

func (*TaskLoop) DeepCopy

func (in *TaskLoop) DeepCopy() *TaskLoop

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

func (*TaskLoop) DeepCopyInto

func (in *TaskLoop) DeepCopyInto(out *TaskLoop)

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

func (*TaskLoop) DeepCopyObject

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

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

func (*TaskLoop) SetDefaults

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

SetDefaults set any defaults for the TaskLoop

func (*TaskLoop) Validate

func (tl *TaskLoop) Validate(ctx context.Context) *apis.FieldError

Validate TaskLoop

type TaskLoopList

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

TaskLoopList contains a list of TaskLoops

func (*TaskLoopList) DeepCopy

func (in *TaskLoopList) DeepCopy() *TaskLoopList

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

func (*TaskLoopList) DeepCopyInto

func (in *TaskLoopList) DeepCopyInto(out *TaskLoopList)

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

func (*TaskLoopList) DeepCopyObject

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

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

type TaskLoopRunReason

type TaskLoopRunReason string

TaskLoopRunReason represents a reason for the Run "Succeeded" condition

const (
	// TaskLoopRunReasonStarted is the reason set when the Run has just started
	TaskLoopRunReasonStarted TaskLoopRunReason = "Started"

	// TaskLoopRunReasonRunning indicates that the Run is in progress
	TaskLoopRunReasonRunning TaskLoopRunReason = "Running"

	// TaskLoopRunReasonFailed indicates that one of the TaskRuns created from the Run failed
	TaskLoopRunReasonFailed TaskLoopRunReason = "Failed"

	// TaskLoopRunReasonSucceeded indicates that all of the TaskRuns created from the Run completed successfully
	TaskLoopRunReasonSucceeded TaskLoopRunReason = "Succeeded"

	// TaskLoopRunReasonCouldntCancel indicates that a Run was cancelled but attempting to update
	// the running TaskRun as cancelled failed.
	TaskLoopRunReasonCouldntCancel TaskLoopRunReason = "TaskLoopRunCouldntCancel"

	// TaskLoopRunReasonCouldntGetTaskLoop indicates that the associated TaskLoop couldn't be retrieved
	TaskLoopRunReasonCouldntGetTaskLoop TaskLoopRunReason = "CouldntGetTaskLoop"

	// TaskLoopRunReasonFailedValidation indicates that the TaskLoop failed runtime validation
	TaskLoopRunReasonFailedValidation TaskLoopRunReason = "TaskLoopValidationFailed"

	// TaskLoopRunReasonInternalError indicates that the TaskLoop failed due to an internal error in the reconciler
	TaskLoopRunReasonInternalError TaskLoopRunReason = "TaskLoopInternalError"
)

func (TaskLoopRunReason) String

func (t TaskLoopRunReason) String() string

type TaskLoopRunStatus

type TaskLoopRunStatus struct {
	// TaskLoopSpec contains the exact spec used to instantiate the Run
	TaskLoopSpec *TaskLoopSpec `json:"taskLoopSpec,omitempty"`
	// map of TaskLoopTaskRunStatus with the taskRun name as the key
	// +optional
	TaskRuns map[string]*TaskLoopTaskRunStatus `json:"taskRuns,omitempty"`
}

TaskLoopRunStatus contains the status stored in the ExtraFields of a Run that references a TaskLoop.

func (*TaskLoopRunStatus) DeepCopy

func (in *TaskLoopRunStatus) DeepCopy() *TaskLoopRunStatus

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

func (*TaskLoopRunStatus) DeepCopyInto

func (in *TaskLoopRunStatus) DeepCopyInto(out *TaskLoopRunStatus)

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

type TaskLoopSpec

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

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

	// IterateParam is the name of the task parameter that is iterated upon.
	IterateParam string `json:"iterateParam"`

	// Time after which the TaskRun times out.
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`

	// Retries represents how many times a task should be retried in case of task failure.
	// +optional
	Retries int `json:"retries,omitempty"`

	// Concurrency represents how many tasks can be running at the same time.
	// +optional
	Concurrency *int `json:"concurrency,omitempty"`
}

TaskLoopSpec defines the desired state of the TaskLoop

func (*TaskLoopSpec) DeepCopy

func (in *TaskLoopSpec) DeepCopy() *TaskLoopSpec

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

func (*TaskLoopSpec) DeepCopyInto

func (in *TaskLoopSpec) DeepCopyInto(out *TaskLoopSpec)

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

func (*TaskLoopSpec) SetDefaults

func (tls *TaskLoopSpec) SetDefaults(ctx context.Context)

SetDefaults set any defaults for the TaskLoop spec

func (*TaskLoopSpec) Validate

func (tls *TaskLoopSpec) Validate(ctx context.Context) *apis.FieldError

Validate TaskLoopSpec

type TaskLoopTaskRunStatus

type TaskLoopTaskRunStatus struct {
	// iteration number
	Iteration int `json:"iteration,omitempty"`
	// Status is the TaskRunStatus for the corresponding TaskRun
	// +optional
	Status *v1beta1.TaskRunStatus `json:"status,omitempty"`
}

TaskLoopTaskRunStatus contains the iteration number for a TaskRun and the TaskRun's Status

func (*TaskLoopTaskRunStatus) DeepCopy

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

func (*TaskLoopTaskRunStatus) DeepCopyInto

func (in *TaskLoopTaskRunStatus) DeepCopyInto(out *TaskLoopTaskRunStatus)

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

Jump to

Keyboard shortcuts

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