Documentation ¶
Index ¶
Constants ¶
View Source
const ( // APICallRetryInterval defines how long should wait before retrying a failed API operation APICallRetryInterval = 500 * time.Millisecond // PatchNodeTimeout specifies how long should wait for applying the label and taint on the master before timing out PatchNodeTimeout = 2 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func PatchMachine ¶
func PatchMachine(ctx context.Context, client platformv1client.PlatformV1Interface, machineName string, patchFn func(*platformv1.Machine)) error
PatchMachine tries to patch a machine using patchFn for the actual mutating logic. Retries are provided by the wait package.
func PatchMachineOnce ¶
func PatchMachineOnce(ctx context.Context, client platformv1client.PlatformV1Interface, machineName string, patchFn func(*platformv1.Machine)) func() (bool, error)
PatchMachineOnce executes patchFn on the machine object found by the machine name. This is a condition function meant to be used with wait.Poll. false, nil implies it is safe to try again, an error indicates no more tries should be made and true indicates success.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.