util

package
v0.0.0-...-4234fb6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

func FindOwnerKind

func FindOwnerKind(owners []metav1.OwnerReference, kind string) string

func Int32Ptr

func Int32Ptr(i int32) *int32

func Int64Ptr

func Int64Ptr(i int64) *int64

func Jitter

func Jitter(base time.Duration, ratio float64) time.Duration

func MergeMaps

func MergeMaps[M ~map[K]V, K comparable, V any](src ...M) M

func StringPtr

func StringPtr(str string) *string

func Upsert

func Upsert(ctx context.Context, c client.Client, res client.Object) error

func UseServerSideApply

func UseServerSideApply()

UseServerSideApply allows tests to require the server side apply patch strategy. Useful in cases where a real client that supports it is used. The default is to use Merge because SSA isn't supported by the fake client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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