Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Start starts the condition manager. Start() // UpdateCondition updates a specific condition. UpdateCondition(types.Condition) // GetConditions returns all current conditions. GetConditions() []types.Condition }
Manager synchronizes node conditions with the apiserver with problem client. It makes sure that: 1) Node conditions are updated to apiserver as soon as possible. 2) Node problem detector won't flood apiserver. 3) No one else could change the node conditions maintained by node problem detector. Manager checks every updatePeriod to see whether there is node condition update. If there are any, it will synchronize with the apiserver. This addresses 1) and 2). Manager synchronizes with apiserver every resyncPeriod no matter there is node condition update or not. This addresses 3).
func NewManager ¶
func NewManager(log logrus.FieldLogger, client problemclient.Client, clock clock.WithTicker, heartbeatPeriod time.Duration) Manager
NewManager creates a condition manager.
Click to show internal directories.
Click to hide internal directories.