Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ResourceSpec
- type TektonPruner
- func (in *TektonPruner) DeepCopy() *TektonPruner
- func (in *TektonPruner) DeepCopyInto(out *TektonPruner)
- func (in *TektonPruner) DeepCopyObject() runtime.Object
- func (tp *TektonPruner) GetConditionSet() apis.ConditionSet
- func (*TektonPruner) GetGroupVersionKind() schema.GroupVersionKind
- func (tr *TektonPruner) GetStatus() *duckv1.Status
- func (tp *TektonPruner) SetDefaults(ctx context.Context)
- func (tp *TektonPruner) Validate(ctx context.Context) *apis.FieldError
- type TektonPrunerList
- type TektonPrunerSpec
- type TektonPrunerStatus
Constants ¶
const ManagedByLabelKey = "app.kubernetes.io/managed-by"
const (
TektonPrunerConditionReady = apis.ConditionReady
)
Variables ¶
var (
// AddToScheme adds Build types to the scheme.
AddToScheme = schemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: tektonpruner.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 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 ¶
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.