Documentation ¶
Index ¶
Constants ¶
View Source
const ControllerName = "heartbeat"
ControllerName is the name of the controller.
Variables ¶
View Source
var DefaultAddOptions = AddOptions{
RenewIntervalSeconds: 30,
}
DefaultAddOptions are the default AddOptions for AddToManager.
Functions ¶
func AddToManager ¶
AddToManager adds the heartbeat controller with the default Options to the manager.
Types ¶
type AddArgs ¶
type AddArgs struct { // ControllerOptions are the controller.Options. ControllerOptions controller.Options // ExtensionName is the name of the extension controller. ExtensionName string // Namespace is the namespace which will be used for the heartbeat lease resource. Namespace string // RenewIntervalSeconds defines how often the heartbeat lease is renewed. RenewIntervalSeconds int32 // Clock is the clock to use when renewing the heartbeat lease resource. Clock clock.Clock }
AddArgs are arguments for adding a heartbeat controller to a manager.
type AddOptions ¶
type AddOptions struct { // ExtensionName is the name of the extension that this heartbeat controller is part of. ExtensionName string // Namespace is the namespace which will be used for the heartbeat lease resource. Namespace string // RenewIntervalSeconds defines how often the heartbeat lease is renewed. RenewIntervalSeconds int32 }
AddOptions are options to apply when adding the heartbeat controller to the manager.
Click to show internal directories.
Click to hide internal directories.