Documentation
¶
Index ¶
- func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl
- type Reconciler
- type TrFuncs
- func (trf *TrFuncs) Delete(ctx context.Context, namespace, name string) error
- func (trf *TrFuncs) Get(ctx context.Context, namespace, name string) (metav1.Object, error)
- func (trf *TrFuncs) GetCompletionTime(resource metav1.Object) (metav1.Time, error)
- func (trf *TrFuncs) GetDefaultLabelKey() string
- func (trf *TrFuncs) GetEnforcedConfigLevel(namespace, name string, selectors config.SelectorSpec) config.EnforcedConfigLevel
- func (trf *TrFuncs) GetFailedHistoryLimitCount(namespace, name string, selectors config.SelectorSpec) (*int32, string)
- func (trf *TrFuncs) GetMatchingSelector(namespace, name string, selectors config.SelectorSpec) *config.SelectorSpec
- func (trf *TrFuncs) GetSuccessHistoryLimitCount(namespace, name string, selectors config.SelectorSpec) (*int32, string)
- func (trf *TrFuncs) GetTTLSecondsAfterFinished(namespace, taskName string, selectors config.SelectorSpec) (*int32, string)
- func (trf *TrFuncs) Ignore(resource metav1.Object) bool
- func (trf *TrFuncs) IsCompleted(resource metav1.Object) bool
- func (trf *TrFuncs) IsFailed(resource metav1.Object) bool
- func (trf *TrFuncs) IsSuccessful(resource metav1.Object) bool
- func (trf *TrFuncs) List(ctx context.Context, namespace, labelSelector string) ([]metav1.Object, error)
- func (trf *TrFuncs) ListByAnnotations(ctx context.Context, namespace string, annotations map[string]string) ([]metav1.Object, error)
- func (trf *TrFuncs) ListByLabels(ctx context.Context, namespace string, labels map[string]string) ([]metav1.Object, error)
- func (trf *TrFuncs) ListByNamespaces(ctx context.Context, namespaces []string) (map[string][]metav1.Object, error)
- func (trf *TrFuncs) Patch(ctx context.Context, namespace, name string, patchBytes []byte) error
- func (trf *TrFuncs) Type() string
- func (trf *TrFuncs) Update(ctx context.Context, resource metav1.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
NewController creates a Reconciler and returns the result of NewImpl.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler implements simpledeploymentreconciler.Interface for SimpleDeployment resources.
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, tr *pipelinev1.TaskRun) reconciler.Event
ReconcileKind implements Interface.ReconcileKind.
type TrFuncs ¶
type TrFuncs struct {
// contains filtered or unexported fields
}
TrFuncs provides methods for working with TaskRun resources it contains a client to interact with the pipeline API and manage TaskRuns
func NewTrFuncs ¶
func NewTrFuncs(client pipelineversioned.Interface) *TrFuncs
NewTrFuncs creates a new instance of TrFuncs with the provided pipeline client. This client is used to interact with the Tekton pipeline API.
func (*TrFuncs) GetCompletionTime ¶
GetCompletionTime retrieves the completion time of a TaskRun resource.
func (*TrFuncs) GetDefaultLabelKey ¶
GetDefaultLabelKey returns the default label key for TaskRun resources.
func (*TrFuncs) GetEnforcedConfigLevel ¶
func (trf *TrFuncs) GetEnforcedConfigLevel(namespace, name string, selectors config.SelectorSpec) config.EnforcedConfigLevel
GetEnforcedConfigLevel retrieves the enforced config level for a TaskRun.
func (*TrFuncs) GetFailedHistoryLimitCount ¶
func (trf *TrFuncs) GetFailedHistoryLimitCount(namespace, name string, selectors config.SelectorSpec) (*int32, string)
GetFailedHistoryLimitCount retrieves the failed history limit count for a TaskRun.
func (*TrFuncs) GetMatchingSelector ¶ added in v0.3.5
func (trf *TrFuncs) GetMatchingSelector(namespace, name string, selectors config.SelectorSpec) *config.SelectorSpec
GetMatchingSelector returns the ConfigMap's selector that matches a TaskRun.
func (*TrFuncs) GetSuccessHistoryLimitCount ¶
func (trf *TrFuncs) GetSuccessHistoryLimitCount(namespace, name string, selectors config.SelectorSpec) (*int32, string)
GetSuccessHistoryLimitCount retrieves the success history limit count for a TaskRun.
func (*TrFuncs) GetTTLSecondsAfterFinished ¶
func (trf *TrFuncs) GetTTLSecondsAfterFinished(namespace, taskName string, selectors config.SelectorSpec) (*int32, string)
GetTTLSecondsAfterFinished retrieves the TTL (time-to-live) in seconds after a TaskRun finishes.
func (*TrFuncs) Ignore ¶
Ignore returns true if the resource should be ignored based on labels and annotations.
func (*TrFuncs) IsCompleted ¶
IsCompleted checks if the TaskRun resource has completed.
func (*TrFuncs) IsSuccessful ¶
IsSuccessful checks if the TaskRun resource has successfully completed.
func (*TrFuncs) List ¶
func (trf *TrFuncs) List(ctx context.Context, namespace, labelSelector string) ([]metav1.Object, error)
List returns a list of TaskRuns in a given namespace with a label selector.
func (*TrFuncs) ListByAnnotations ¶
func (trf *TrFuncs) ListByAnnotations(ctx context.Context, namespace string, annotations map[string]string) ([]metav1.Object, error)
ListByAnnotations returns a list of TaskRuns in a given namespace filtered by annotations.
func (*TrFuncs) ListByLabels ¶
func (trf *TrFuncs) ListByLabels(ctx context.Context, namespace string, labels map[string]string) ([]metav1.Object, error)
ListByLabels returns a list of TaskRuns in a given namespace filtered by multiple labels.
func (*TrFuncs) ListByNamespaces ¶
func (trf *TrFuncs) ListByNamespaces(ctx context.Context, namespaces []string) (map[string][]metav1.Object, error)
ListByNamespaces returns a list of TaskRuns across multiple namespaces.
func (*TrFuncs) Patch ¶
Patch modifies an existing TaskRun resource using a JSON patch. This is useful for updating only specific fields of the resource.