testing

package
v1.19.6-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 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 FakePodDeletionSafetyProvider

type FakePodDeletionSafetyProvider struct{}

FakePodDeletionSafetyProvider is a fake PodDeletionSafetyProvider for test.

func (*FakePodDeletionSafetyProvider) PodResourcesAreReclaimed added in v1.7.0

func (f *FakePodDeletionSafetyProvider) PodResourcesAreReclaimed(pod *v1.Pod, status v1.PodStatus) bool

PodResourcesAreReclaimed implements PodDeletionSafetyProvider. Always reports that all pod resources are reclaimed.

type MockStatusProvider added in v1.14.0

type MockStatusProvider struct {
	mock.Mock
}

MockStatusProvider mocks a PodStatusProvider.

func (*MockStatusProvider) GetPodStatus added in v1.14.0

func (m *MockStatusProvider) GetPodStatus(uid types.UID) (v1.PodStatus, bool)

GetPodStatus implements PodStatusProvider.

Jump to

Keyboard shortcuts

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