test

package
v0.19.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertFinalizers

func AssertFinalizers[T runtime.Object](client resource.Interface[T], name string, finalizers ...string)

func AwaitAndVerifyResource added in v0.17.0

func AwaitAndVerifyResource[T runtime.Object](client resource.Interface[T], name string, verify func(T) bool) T

func AwaitFinalizer

func AwaitFinalizer[T runtime.Object](client resource.Interface[T], name, finalizer string)

func AwaitNoFinalizer

func AwaitNoFinalizer[T runtime.Object](client resource.Interface[T], name, finalizer string)

func AwaitNoResource

func AwaitNoResource[T runtime.Object](client resource.Interface[T], name string)

func AwaitResource

func AwaitResource[T runtime.Object](client resource.Interface[T], name string) T

func AwaitStatusCondition

func AwaitStatusCondition(expCond *metav1.Condition, get func() ([]metav1.Condition, error))

func AwaitUpdateAction

func AwaitUpdateAction(f *testing.Fake, resourceType, name string) runtime.Object

func EnsureActionsForResource added in v0.15.0

func EnsureActionsForResource(f *testing.Fake, resourceType string, expectedVerbs ...string)

func EnsureNoActionsForResource

func EnsureNoActionsForResource(f *testing.Fake, resourceType string, expectedVerbs ...string)

func EnsureNoResource

func EnsureNoResource[T runtime.Object](client resource.Interface[T], name string)

func GetFinalizers

func GetFinalizers[T runtime.Object](client resource.Interface[T], name string) []string

func GetOccurredActionVerbs added in v0.15.0

func GetOccurredActionVerbs(f *testing.Fake, resourceType string, expectedVerbs ...string) []string

func SetDeleting

func SetDeleting[T runtime.Object](client resource.Interface[T], name string)

Types

type LeaderElectionSupport added in v0.16.1

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

func NewLeaderElectionSupport added in v0.16.1

func NewLeaderElectionSupport(kubeClient *k8sfake.Clientset, namespace, lockName string) *LeaderElectionSupport

func (*LeaderElectionSupport) AwaitLeaseAcquired added in v0.16.1

func (l *LeaderElectionSupport) AwaitLeaseAcquired()

func (*LeaderElectionSupport) AwaitLeaseReleased added in v0.16.1

func (l *LeaderElectionSupport) AwaitLeaseReleased()

func (*LeaderElectionSupport) AwaitLeaseRenewed added in v0.16.1

func (l *LeaderElectionSupport) AwaitLeaseRenewed()

func (*LeaderElectionSupport) EnsureLeaseNotAcquired added in v0.16.1

func (l *LeaderElectionSupport) EnsureLeaseNotAcquired()

func (*LeaderElectionSupport) FailLease added in v0.16.1

func (l *LeaderElectionSupport) FailLease(renewDeadline time.Duration)

func (*LeaderElectionSupport) GetRecord added in v0.16.1

func (*LeaderElectionSupport) SucceedLease added in v0.16.1

func (l *LeaderElectionSupport) SucceedLease()

Jump to

Keyboard shortcuts

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