v1alpha1

package
v0.0.0-...-618c9fc Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ManagedByLabelKey = "app.kubernetes.io/managed-by"
View Source
const (
	TektonPrunerConditionReady = apis.ConditionReady
)

Variables

View Source
var (

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

type ResourceSpec struct {
	Name string `json:"name"`
	// +optional
	TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"`
	// +optional
	SuccessfulHistoryLimit *int32 `json:"successfulHistoryLimit,omitempty"`
	// +optional
	FailedHistoryLimit *int32 `json:"failedHistoryLimit,omitempty"`
}

func (*ResourceSpec) DeepCopy

func (in *ResourceSpec) DeepCopy() *ResourceSpec

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

func (*ResourceSpec) DeepCopyInto

func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)

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

type TektonPruner

type TektonPruner struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TektonPrunerSpec   `json:"spec,omitempty"`
	Status TektonPrunerStatus `json:"status,omitempty"`
}

TektonPruner is the Schema for the tektonpruners API

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

func (*TektonPruner) DeepCopy

func (in *TektonPruner) DeepCopy() *TektonPruner

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

func (*TektonPruner) DeepCopyInto

func (in *TektonPruner) DeepCopyInto(out *TektonPruner)

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

func (*TektonPruner) DeepCopyObject

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

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

func (*TektonPruner) GetConditionSet

func (tp *TektonPruner) GetConditionSet() apis.ConditionSet

GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.

func (*TektonPruner) GetGroupVersionKind

func (*TektonPruner) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable

func (*TektonPruner) GetStatus

func (tr *TektonPruner) GetStatus() *duckv1.Status

GetStatus retrieves the status of the resource. Implements the KRShaped interface.

func (*TektonPruner) SetDefaults

func (tp *TektonPruner) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*TektonPruner) Validate

func (tp *TektonPruner) Validate(ctx context.Context) *apis.FieldError

Validate TektonPruner

type TektonPrunerList

type TektonPrunerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []TektonPruner `json:"items"`
}

TektonPrunerList contains a list of TektonPruner

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

func (*TektonPrunerList) DeepCopy

func (in *TektonPrunerList) DeepCopy() *TektonPrunerList

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

func (*TektonPrunerList) DeepCopyInto

func (in *TektonPrunerList) DeepCopyInto(out *TektonPrunerList)

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

func (*TektonPrunerList) DeepCopyObject

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

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

type TektonPrunerSpec

type TektonPrunerSpec struct {
	// +optional
	TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"`
	// +optional
	SuccessfulHistoryLimit *int32 `json:"successfulHistoryLimit,omitempty"`
	// +optional
	FailedHistoryLimit *int32 `json:"failedHistoryLimit,omitempty"`
	// +optional
	Pipelines []ResourceSpec `json:"pipelines,omitempty"`
	// +optional
	Tasks []ResourceSpec `json:"tasks,omitempty"`
}

TektonPrunerSpec defines the desired state of TektonPruner

func (*TektonPrunerSpec) DeepCopy

func (in *TektonPrunerSpec) DeepCopy() *TektonPrunerSpec

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

func (*TektonPrunerSpec) DeepCopyInto

func (in *TektonPrunerSpec) DeepCopyInto(out *TektonPrunerSpec)

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

func (*TektonPrunerSpec) Validate

func (tps *TektonPrunerSpec) Validate(ctx context.Context) (errs *apis.FieldError)

Validate TektonPrunerSpec

type TektonPrunerStatus

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

TektonPrunerStatus defines the observed state of TektonPruner

func (*TektonPrunerStatus) DeepCopy

func (in *TektonPrunerStatus) DeepCopy() *TektonPrunerStatus

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

func (*TektonPrunerStatus) DeepCopyInto

func (in *TektonPrunerStatus) DeepCopyInto(out *TektonPrunerStatus)

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

func (*TektonPrunerStatus) InitializeConditions

func (tps *TektonPrunerStatus) InitializeConditions()

InitializeConditions sets the initial values to the conditions.

func (*TektonPrunerStatus) MarkReady

func (tps *TektonPrunerStatus) MarkReady()

MarkPodsReady makes the SimpleDeployment be ready.

Jump to

Keyboard shortcuts

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