util

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReconcileObject

func ReconcileObject(logger *slog.Logger, k8sClient client.Client, namespace string, item ReconcileItem) error

Types

type ReconcileItem

type ReconcileItem lo.Tuple2[client.Object, bool]

(obj, shouldExist))

type ReconcilerState

type ReconcilerState struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ReconcilerState) Cancel

func (r *ReconcilerState) Cancel()

func (*ReconcilerState) GetRunning

func (r *ReconcilerState) GetRunning() bool

func (*ReconcilerState) SetBackoffCtx

func (r *ReconcilerState) SetBackoffCtx(ctx context.Context, cancel context.CancelFunc)

func (*ReconcilerState) SetRunning

func (r *ReconcilerState) SetRunning(running bool)

Jump to

Keyboard shortcuts

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