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

Documentation

Overview

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

Index

Constants

View Source
const (
	ManagedByLabelKey = "app.kubernetes.io/managed-by"

	// Label used to indicate that a reconciler should start a pending PipelineRun
	LabelToStartPR = "tekton.dev/ok-to-start"
)

Variables

View Source
var (
	StrategyCancel           = Strategy("Cancel")
	StrategyGracefullyCancel = Strategy("GracefullyCancel")
	StrategyGracefullyStop   = Strategy("GracefullyStop")
)
View Source
var (

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

type ConcurrencyControl struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +optional
	Spec ConcurrencySpec `json:"spec"`
}

+genclient +genreconciler:krshapedlogic=false +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*ConcurrencyControl) DeepCopy

func (in *ConcurrencyControl) DeepCopy() *ConcurrencyControl

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

func (*ConcurrencyControl) DeepCopyInto

func (in *ConcurrencyControl) DeepCopyInto(out *ConcurrencyControl)

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

func (*ConcurrencyControl) DeepCopyObject

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

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

func (*ConcurrencyControl) GetGroupVersionKind

func (cc *ConcurrencyControl) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable

func (*ConcurrencyControl) SetDefaults

func (t *ConcurrencyControl) SetDefaults(ctx context.Context)

SetDefaults sets the defaults on the object.

func (*ConcurrencyControl) Validate

func (t *ConcurrencyControl) Validate(ctx context.Context) *apis.FieldError

Validate validates a concurrencycontrol

type ConcurrencyControlList

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ConcurrencyControlList) DeepCopy

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

func (*ConcurrencyControlList) DeepCopyInto

func (in *ConcurrencyControlList) DeepCopyInto(out *ConcurrencyControlList)

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

func (*ConcurrencyControlList) DeepCopyObject

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

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

type ConcurrencySpec

type ConcurrencySpec struct {
	// + optional
	Strategy string `json:"strategy,omitempty"`
	// + optional
	Selector metav1.LabelSelector `json:"selector,omitempty"`
	// Label keys that identify the concurrency group of a PipelineRun.
	// All PipelineRuns with the same value for all of these labels are part of the
	// same concurrency group.
	// If a PipelineRun has no value for a key in GroupBy, other PipelineRuns that
	// also have no value for that key will be part of the same concurrency group.
	// + optional
	GroupBy []string `json:"groupBy,omitempty"`
}

func (*ConcurrencySpec) DeepCopy

func (in *ConcurrencySpec) DeepCopy() *ConcurrencySpec

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

func (*ConcurrencySpec) DeepCopyInto

func (in *ConcurrencySpec) DeepCopyInto(out *ConcurrencySpec)

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

type Strategy

type Strategy string

Jump to

Keyboard shortcuts

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