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
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ConcurrencyControl
- func (in *ConcurrencyControl) DeepCopy() *ConcurrencyControl
- func (in *ConcurrencyControl) DeepCopyInto(out *ConcurrencyControl)
- func (in *ConcurrencyControl) DeepCopyObject() runtime.Object
- func (cc *ConcurrencyControl) GetGroupVersionKind() schema.GroupVersionKind
- func (t *ConcurrencyControl) SetDefaults(ctx context.Context)
- func (t *ConcurrencyControl) Validate(ctx context.Context) *apis.FieldError
- type ConcurrencyControlList
- type ConcurrencySpec
- type Strategy
Constants ¶
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 ¶
var ( StrategyCancel = Strategy("Cancel") StrategyGracefullyCancel = Strategy("GracefullyCancel") StrategyGracefullyStop = Strategy("GracefullyStop") )
var (
// AddToScheme adds Build types to the scheme.
AddToScheme = schemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: pipeline.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
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 ¶
func (in *ConcurrencyControlList) DeepCopy() *ConcurrencyControlList
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.