reconciler

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Configures whether Tekton CRD objects should be updated with Result
	// annotations during reconcile. Useful to enable for dry run modes.
	DisableAnnotationUpdate bool

	// CompletedResourceGracePeriod is the time to wait before deleting completed resources.
	// 0 implies the duration
	CompletedResourceGracePeriod time.Duration

	// How long the controller waits to reprocess keys on certain events
	// (e.g. an object doesn't match the provided label selectors).
	RequeueInterval time.Duration
	// contains filtered or unexported fields
}

Config defines shared reconciler configuration options.

func (*Config) GetCompletedResourceGracePeriod added in v0.3.0

func (c *Config) GetCompletedResourceGracePeriod() time.Duration

GetCompletedResourceGracePeriod returns the grace period to wait for deleting Run objects. If value < 0, objects will be deleted immediately. If value = 0 (or not explicitly set), then objects will not be deleted. If value > 0, objects will be deleted with a grace period option of the duration.

func (*Config) GetDisableAnnotationUpdate

func (c *Config) GetDisableAnnotationUpdate() bool

GetDisableAnnotationupdate returns whether annotation updates should be disabled. This is safe to call for missing configs.

func (*Config) GetLabelSelector added in v0.5.0

func (c *Config) GetLabelSelector() labels.Selector

GetLabelSelector returns the label selector to match resources against in order to determine whether they're eligible for deletion. If no selector was configured via the SetLabelSelector method, returns a selector that always matches any resource.

func (*Config) SetLabelSelector added in v0.5.0

func (c *Config) SetLabelSelector(selector string) error

SetLabelSelector sets a label selector to match resources against in order to determine whether they're eligible for deletion. The syntax obeys the same format accepted by list operations peformed on the Kubernetes API server.

Directories

Path Synopsis
package leaderelection provides a few utilities to help us to enable leader election support in the Watcher controllers.
package leaderelection provides a few utilities to help us to enable leader election support in the Watcher controllers.

Jump to

Keyboard shortcuts

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