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

Documentation

Overview

Package v1beta1 contains API Schema definitions for the pipeline v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=tekton.dev

Index

Constants

View Source
const ColocatedPipelineRunLabelKey = GroupName + "/colocatedPipelineRun"
View Source
const ControllerName = "ColocatedPipelineRun"
View Source
const GroupName = "custom.tekton.dev"

Variables

View Source
var (

	// AddToScheme adds Build types to the scheme.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: 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

func ValidateColocatedPipelineRun

func ValidateColocatedPipelineRun(cpr *ColocatedPipelineRun) error

Types

type ChildStatus

type ChildStatus struct {
	PipelineTaskName string            `json:"pipelineTaskName,omitempty"`
	Spec             *v1beta1.TaskSpec // TODO: custom tasks?
	StepStatuses     []v1beta1.StepState
	// TODO: task status in addition to the step statuses
	// TaskRunResults are the list of results written out by the task's containers
	// +optional
	TaskRunResults []v1beta1.TaskRunResult `json:"taskResults,omitempty"` // TODO: custom tasks?
}

func (*ChildStatus) DeepCopy

func (in *ChildStatus) DeepCopy() *ChildStatus

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

func (*ChildStatus) DeepCopyInto

func (in *ChildStatus) DeepCopyInto(out *ChildStatus)

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

type ColocatedPipelineRun

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

	// Spec holds the desired state of the ColocatedPipelineRun from the client
	// +optional
	Spec ColocatedPipelineRunSpec `json:"spec"`

	Status ColocatedPipelineRunStatus `json:"status,omitempty"`
}

ColocatedPipelineRun TODO +k8s:openapi-gen=true

func (*ColocatedPipelineRun) DeepCopy

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

func (*ColocatedPipelineRun) DeepCopyInto

func (in *ColocatedPipelineRun) DeepCopyInto(out *ColocatedPipelineRun)

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

func (*ColocatedPipelineRun) DeepCopyObject

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

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

func (*ColocatedPipelineRun) GetGroupVersionKind

func (*ColocatedPipelineRun) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable.

func (*ColocatedPipelineRun) IsDone

func (cpr *ColocatedPipelineRun) IsDone() bool

func (*ColocatedPipelineRun) PipelineTimeout

func (cpr *ColocatedPipelineRun) PipelineTimeout(ctx context.Context) time.Duration

type ColocatedPipelineRunList

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

func (*ColocatedPipelineRunList) DeepCopy

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

func (*ColocatedPipelineRunList) DeepCopyInto

func (in *ColocatedPipelineRunList) DeepCopyInto(out *ColocatedPipelineRunList)

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

func (*ColocatedPipelineRunList) DeepCopyObject

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

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

type ColocatedPipelineRunReason

type ColocatedPipelineRunReason string

ColocatedPipelineRunReason represents a reason for the Run "Succeeded" condition

func (ColocatedPipelineRunReason) String

type ColocatedPipelineRunSpec

type ColocatedPipelineRunSpec struct {
	// +optional
	PipelineRef *v1beta1.PipelineRef `json:"pipelineRef,omitempty"`

	// +optional
	PipelineSpec *v1beta1.PipelineSpec `json:"pipelineSpec,omitempty"`

	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	// Time after which the ColocatedPipelineRun times out.
	// +optional
	Timeouts *v1beta1.TimeoutFields `json:"timeouts,omitempty"`

	// +optional
	Params []v1beta1.Param `json:"params,omitempty"`

	// +optional
	// +listType=atomic
	Workspaces []v1beta1.WorkspaceBinding `json:"workspaces,omitempty"`
}

ColocatedPipelineRunSpec defines the desired state of the ColocatedPipelineRun

func (*ColocatedPipelineRunSpec) DeepCopy

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

func (*ColocatedPipelineRunSpec) DeepCopyInto

func (in *ColocatedPipelineRunSpec) DeepCopyInto(out *ColocatedPipelineRunSpec)

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

type ColocatedPipelineRunStatus

type ColocatedPipelineRunStatus struct {
	duckv1.Status `json:",inline"`

	// ColocatedPipelineRunStatusFields inlines the status fields.
	ColocatedPipelineRunStatusFields `json:",inline"`
}

ColocatedPipelineRunStatus defines the observed state of PipelineRun

func (*ColocatedPipelineRunStatus) DeepCopy

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

func (*ColocatedPipelineRunStatus) DeepCopyInto

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

func (*ColocatedPipelineRunStatus) MarkFailed

func (cpr *ColocatedPipelineRunStatus) MarkFailed(reason, messageFormat string, messageA ...interface{})

MarkFailed changes the Succeeded condition to False with the provided reason and message.

func (*ColocatedPipelineRunStatus) SetCondition

func (cpr *ColocatedPipelineRunStatus) SetCondition(newCond *apis.Condition)

SetCondition sets the condition, unsetting previous conditions with the same type as necessary.

type ColocatedPipelineRunStatusFields

type ColocatedPipelineRunStatusFields struct {
	// StartTime is the time the ColocatedPipelineRun is actually started.
	// +optional
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// CompletionTime is the time the ColocatedPipelineRun completed.
	// +optional
	CompletionTime *metav1.Time `json:"completionTime,omitempty"`
	// PipelineSpec contains the exact spec used to instantiate the ColocatedPipelineRun
	PipelineSpec *v1beta1.PipelineSpec `json:"pipelineSpec,omitempty"`
	// ChildStatuses
	ChildStatuses []ChildStatus `json:"childstatuses,omitempty"`
}

ColocatedPipelineRunStatusFields contains the status stored in the ExtraFields of a Run that references a ColocatedPipelineRun.

func (*ColocatedPipelineRunStatusFields) DeepCopy

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

func (*ColocatedPipelineRunStatusFields) DeepCopyInto

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