runctl

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller processes PipelineRun resources

func NewController

func NewController(logger logr.Logger, factory k8s.ClientFactory, opts ControllerOpts) *Controller

NewController creates new Controller

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

Run runs the controller

type ControllerOpts added in v0.16.0

type ControllerOpts struct {
	// HeartbeatInterval is the interval for heartbeats.
	// If zero or negative, heartbeats are disabled.
	HeartbeatInterval time.Duration

	// HeartbeatLoggingEnabled controls whether heartbeats are logged.
	// If false, heartbeats are only exposed via metric.
	HeartbeatLoggingEnabled bool

	// HeartbeatLogLevel is the log level to be used for logging heartbeats.
	HeartbeatLogLevel int
}

ControllerOpts stores options for the construction of a Controller instance.

Directories

Path Synopsis
log
Package metrics provides metric support specific to the run controller.
Package metrics provides metric support specific to the run controller.
testing
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.
run
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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