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
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 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. |