Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultWebhookServiceContainerPort is the default value for the eponymous // manager option. DefaultWebhookServiceContainerPort = 0 // DefaultSyncPeriod is the default value for the eponymous // manager option. DefaultSyncPeriod = time.Minute * 10 // DefaultPodName is the default value for the eponymous manager option. DefaultPodName = defaultPrefix + "controller-manager" DefaultPodNamespace = defaultPrefix + "system" // DefaultLeaderElectionID is the default value for the eponymous manager option. DefaultLeaderElectionID = DefaultPodName + "-runtime" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddToManagerFunc ¶
type AddToManagerFunc func(*context.ControllerManagerContext, ctrlmgr.Manager) error
AddToManagerFunc is a function that can be optionally specified with the manager's Options in order to explicitly decide what controllers and webhooks to add to the manager.
type Manager ¶
type Manager interface { ctrl.Manager // GetContext returns the controller manager's context. GetContext() *context.ControllerManagerContext }
Manager is a CAPICS controller manager.
type Options ¶
type Options struct { ctrlmgr.Options // EnableKeepAlive is a session feature to enable keep alive handler // for better load management on ICS api server EnableKeepAlive bool // MaxConcurrentReconciles the maximum number of allowed, concurrent // reconciles. // // Defaults to the eponymous constant in this package. MaxConcurrentReconciles int // LeaderElectionNamespace is the namespace in which the pod running the // controller maintains a leader election lock // // Defaults to the eponymous constant in this package. PodNamespace string // PodName is the name of the pod running the controller manager. // // Defaults to the eponymous constant in this package. PodName string // KeepAliveDuration is the idle time interval in between send() requests // in keepalive handler KeepAliveDuration time.Duration KubeConfig *rest.Config // AddToManager is a function that can be optionally specified with // the manager's Options in order to explicitly decide what controllers // and webhooks to add to the manager. AddToManager AddToManagerFunc }
Options describes the options used to create a new CAPICS manager.
Click to show internal directories.
Click to hide internal directories.