Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterDeletion ¶ added in v0.8.0
AfterDeletion is the function called after object is deleted
type IsReadyForDeletion ¶ added in v0.6.0
IsReadyForDeletion is a predicate function which indicates whether the object being reconciled is ready to be garbage collected. Besides the reqirements that are already enforced by this reconciler, callers may define more specific constraints by providing a function that has the below signature to the Reconciler instance. For instance, the controller that reconciles PipelineRuns can verify whether all dependent TaskRuns are up to date in the API server before deleting all objects in cascade.
type ObjectClient ¶ added in v0.5.0
type ObjectClient interface { Delete(ctx context.Context, name string, opts v1.DeleteOptions) error Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) error }
ObjectClient is a shim around generated k8s clients to handle objects in type agnostic ways. This might be able to be replaced with generics later?
type PipelineRunClient ¶ added in v0.5.0
type PipelineRunClient struct {
v1beta1.PipelineRunInterface
}
PipelineRunClient implements the dynamic ObjectClient for TaskRuns.
type Reconciler ¶
type Reconciler struct { IsReadyForDeletionFunc IsReadyForDeletion AfterDeletion AfterDeletion // contains filtered or unexported fields }
Reconciler implements common reconciler behavior across different Tekton Run Object types.
func NewDynamicReconciler ¶ added in v0.5.0
func NewDynamicReconciler(rc pb.ResultsClient, lc pb.LogsClient, oc ObjectClient, cfg *reconciler.Config) *Reconciler
NewDynamicReconciler creates a new dynamic Reconciler.
type TaskRunClient ¶ added in v0.5.0
type TaskRunClient struct {
v1beta1.TaskRunInterface
}
TaskRunClient implements the dynamic ObjectClient for TaskRuns.