Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DrainHelper ¶
type DrainHelper struct {
// contains filtered or unexported fields
}
func NewDrainHelper ¶
func (*DrainHelper) Run ¶
Run joins leader election and drains(only if drain is set) the node if becomes a leader.
f is a function that takes a context and returns a bool. It should return true if uncordon should be performed(Only applicable if drain is set to true). If `f` returns false, the uncordon does not take place. This is useful in 2-step scenario like sriov-fec-daemon where reboot must be performed without loosing the leadership and without the uncordon.
Click to show internal directories.
Click to hide internal directories.