dynamic

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

func (*PipelineRunClient) Patch added in v0.5.0

func (c *PipelineRunClient) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) error

type Reconciler

type Reconciler struct {
	// 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.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, o results.Object) error

Reconcile handles result/record uploading for the given Run object. If enabled, the object may be deleted upon successful result upload.

type TaskRunClient added in v0.5.0

type TaskRunClient struct {
	v1beta1.TaskRunInterface
}

TaskRunClient implements the dynamic ObjectClient for TaskRuns.

func (*TaskRunClient) Patch added in v0.5.0

func (c *TaskRunClient) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) error

Jump to

Keyboard shortcuts

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