getter

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Get(ctx context.Context, key client.ObjectKey, obj client.Object) error
}

type RetryMissingGetter

type RetryMissingGetter struct {
	// contains filtered or unexported fields
}

Unlike reconciler, webhook or CSI gRPC are one shot API, so they needs read-after-create consistency. This provides us such semantics by reading api-server directly if the object is missing on the cache reader.

func NewRetryMissingGetter

func NewRetryMissingGetter(cacheReader client.Reader, apiReader client.Reader) *RetryMissingGetter

NewRetryMissingGetter creates a RetryMissingGetter instance.

func (*RetryMissingGetter) Get

Get tries cache reader, then if it returns NotFound error, retry direct reader.

Jump to

Keyboard shortcuts

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