apiclient

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL