Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the workflows v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=workflows.tekton.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- func ValidateTrigger(ctx context.Context, t Trigger) (errs *apis.FieldError)
- type Custom
- type Event
- type EventSource
- type EventType
- type Filters
- type GitRef
- type Secret
- type Trigger
- type Workflow
- func (in *Workflow) DeepCopy() *Workflow
- func (in *Workflow) DeepCopyInto(out *Workflow)
- func (in *Workflow) DeepCopyObject() runtime.Object
- func (*Workflow) GetGroupVersionKind() schema.GroupVersionKind
- func (w *Workflow) SetDefaults(ctx context.Context)
- func (w *Workflow) SupportedVerbs() []admissionregistrationv1.OperationType
- func (w *Workflow) Validate(ctx context.Context) *apis.FieldError
- type WorkflowList
- type WorkflowSpec
- type WorkflowStatus
- type WorkflowWorkspaceBinding
Constants ¶
const ( EventTypePush = EventType("push") EventTypePullRequest = EventType("pull_request") )
const GroupName = "workflows.tekton.dev"
GroupName is the Kubernetes resource group name for Tekton types.
const (
WorkflowLabelKey = "workflows.tekton.dev/workflow"
)
Variables ¶
var (
// AddToScheme adds Build types to the scheme.
AddToScheme = schemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
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
func ValidateTrigger ¶
func ValidateTrigger(ctx context.Context, t Trigger) (errs *apis.FieldError)
Types ¶
type Custom ¶
type Custom struct { // +optional CEL string `json:"cel,omitempty"` }
func (*Custom) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Custom.
func (*Custom) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Event ¶
type Event struct { // Source defines the source of a trigger event Source EventSource `json:"source"` // Type is a string that defines the type of an event (e.g. a pull_request or a push) // At the moment this assumes one of the GitHub event types Type EventType `json:"type"` // Secret is the Webhook secret used for this Trigger // This field is temporary until we implement a better way to handle secrets for webhook validation Secret triggersv1beta1.SecretRef `json:"secret"` }
func (*Event) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event.
func (*Event) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventSource ¶
type EventSource struct { }
EventSource defines a Trigger EventSource
func (*EventSource) DeepCopy ¶
func (in *EventSource) DeepCopy() *EventSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSource.
func (*EventSource) DeepCopyInto ¶
func (in *EventSource) DeepCopyInto(out *EventSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Filters ¶
type Filters struct { // GitRef filters events to those affecting the specified git branch or tag // Valid only for "pull_request" or "push" event types // For "pull_request" events, this is the base branch // +optional GitRef *GitRef `json:"gitRef,omitempty"` // +optional Custom []Custom `json:"custom,omitempty"` }
func (*Filters) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filters.
func (*Filters) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRef ¶
type GitRef struct { // Regex matches a git branch or tag // +optional Regex string `json:"regex,omitempty"` }
func (*GitRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRef.
func (*GitRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Secret ¶
func (*Secret) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Secret.
func (*Secret) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Trigger ¶
type Trigger struct { // Event describes the incoming event for this Trigger Event Event `json:"event"` // Bindings are the TriggerBindings used to extract information from this Trigger // +listType=atomic Bindings []*triggersv1beta1.TriggerSpecBinding `json:"bindings"` // Name is the name of this Trigger // +optional Name string `json:"name,omitempty"` // +optional Filters *Filters `json:"filters,omitempty"` }
func (*Trigger) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trigger.
func (*Trigger) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workflow ¶
type Workflow struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Workflow from the client // +optional Spec WorkflowSpec `json:"spec,omitempty"` // +optional Status WorkflowStatus `json:"status,omitempty"` }
Workflow represents a Workflow Custom Resource
func (*Workflow) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workflow.
func (*Workflow) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Workflow) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Workflow) GetGroupVersionKind ¶
func (*Workflow) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable.
func (*Workflow) SetDefaults ¶
func (*Workflow) SupportedVerbs ¶
func (w *Workflow) SupportedVerbs() []admissionregistrationv1.OperationType
SupportedVerbs returns the operations that validation should be called for
type WorkflowList ¶
type WorkflowList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []Workflow `json:"items"` }
WorkflowList contains a list of Workflows
func (*WorkflowList) DeepCopy ¶
func (in *WorkflowList) DeepCopy() *WorkflowList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowList.
func (*WorkflowList) DeepCopyInto ¶
func (in *WorkflowList) DeepCopyInto(out *WorkflowList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkflowList) DeepCopyObject ¶
func (in *WorkflowList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkflowSpec ¶
type WorkflowSpec struct { // Triggers is a list of triggers that can trigger this workflow Triggers []Trigger `json:"triggers,omitempty"` // Params define the default values for params in the Pipeline that can be // overridden in a WorkflowRun or (in the future) from an incoming event. Params []v1beta1.ParamSpec `json:"params,omitempty"` // PipelineSpec is an inline pipeline spec. // Cannot specify both PipelineSpec and PipelineRef. PipelineSpec *v1beta1.PipelineSpec `json:"pipelineSpec,omitempty"` // PipelineRef is a reference to a Pipeline PipelineRef *v1beta1.PipelineRef `json:"pipelineRef,omitempty"` // ServiceAccountName is the K8s service account that pipelineruns // generated from this workflow run as // +optional ServiceAccountName *string `json:"serviceAccountName,omitempty"` // Workspaces is a list of workspaces that the Pipeline in this workflow needs // TODO: Auto-setup a Workspace across multiple Workspaces []WorkflowWorkspaceBinding `json:"workspaces"` // TODO: Timeout ? Timeout *v1beta1.TimeoutFields `json:"timeout,omitempty"` }
WorkflowSpec describes the desired state of the Workflow
func (*WorkflowSpec) DeepCopy ¶
func (in *WorkflowSpec) DeepCopy() *WorkflowSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowSpec.
func (*WorkflowSpec) DeepCopyInto ¶
func (in *WorkflowSpec) DeepCopyInto(out *WorkflowSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkflowSpec) Validate ¶
func (s *WorkflowSpec) Validate(ctx context.Context) (errs *apis.FieldError)
type WorkflowStatus ¶
type WorkflowStatus struct { }
WorkflowStatus describes the observed state of the Workflow
func (*WorkflowStatus) DeepCopy ¶
func (in *WorkflowStatus) DeepCopy() *WorkflowStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowStatus.
func (*WorkflowStatus) DeepCopyInto ¶
func (in *WorkflowStatus) DeepCopyInto(out *WorkflowStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkflowWorkspaceBinding ¶
type WorkflowWorkspaceBinding struct { Name string `json:"name"` v1beta1.WorkspaceBinding `json:",inline"` }
WorkflowWorkspaceBinding maps a Pipeline's declared Workspaces to a Volume. Unlike a regular WorkspaceBinding, a WorkflowWorkspaceBinding will add additional magic to auto-propagate/generate PVCs TODO: Fluent Syntax for Binding
func (*WorkflowWorkspaceBinding) DeepCopy ¶
func (in *WorkflowWorkspaceBinding) DeepCopy() *WorkflowWorkspaceBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowWorkspaceBinding.
func (*WorkflowWorkspaceBinding) DeepCopyInto ¶
func (in *WorkflowWorkspaceBinding) DeepCopyInto(out *WorkflowWorkspaceBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.