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 // Check owner reference when deleting objects. By default, objects having owner references set won't be deleted. CheckOwner bool // contains filtered or unexported fields }
Config defines shared reconciler configuration options.
func (*Config) GetCompletedResourceGracePeriod ¶ added in v0.3.0
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 ¶
GetDisableAnnotationUpdate returns whether annotation updates should be disabled. This is safe to call for missing configs.
func (*Config) GetLabelSelector ¶ added in v0.5.0
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
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 performed 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. |