Documentation ¶
Overview ¶
Package runtime implements the controller runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.3.0
type Option func(*Options)
Option is a functional option for controller runtime.
func WithChangeRateLimit ¶ added in v0.3.0
WithChangeRateLimit sets rate limit for changes performed by controllers.
This might be used to rate limit ill-behaving controllers from overloading the system with changes.
func WithMetrics ¶ added in v0.3.15
WithMetrics enables runtime metrics to be exposed via metrics package.
type Options ¶ added in v0.3.0
type Options struct { // ChangeRateLimit and ChangeBurst configure rate limiting of changes performed by controllers. ChangeRateLimit rate.Limit ChangeBurst int MetricsEnabled bool }
Options configures controller runtime.
func DefaultOptions ¶ added in v0.3.0
func DefaultOptions() Options
DefaultOptions returns default value of Options.
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime implements controller runtime.
func NewRuntime ¶
NewRuntime initializes controller runtime object.
func (*Runtime) GetDependencyGraph ¶
func (runtime *Runtime) GetDependencyGraph() (*controller.DependencyGraph, error)
GetDependencyGraph returns dependency graph between resources and controllers.
func (*Runtime) RegisterController ¶
func (runtime *Runtime) RegisterController(ctrl controller.Controller) error
RegisterController registers new controller.
Directories ¶
Path | Synopsis |
---|---|
Package dependency implements controller dependency database.
|
Package dependency implements controller dependency database. |
Package metrics expose various controller runtime metrics using expvar.
|
Package metrics expose various controller runtime metrics using expvar. |