testing

package
v1.29.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeManager

type FakeManager struct{}

FakeManager simulates a prober.Manager for testing.

func (FakeManager) AddPod

func (FakeManager) AddPod(_ *v1.Pod)

AddPod simulates adding a Pod.

func (FakeManager) CleanupPods

func (FakeManager) CleanupPods(_ map[types.UID]sets.Empty)

CleanupPods simulates cleaning up Pods.

func (FakeManager) RemovePod

func (FakeManager) RemovePod(_ *v1.Pod)

RemovePod simulates removing a Pod.

func (FakeManager) Start

func (FakeManager) Start()

Start simulates start syncing the probe status

func (FakeManager) StopLivenessAndStartup added in v1.22.11

func (FakeManager) StopLivenessAndStartup(_ *v1.Pod)

Simulated stopping liveness and startup probes.

func (FakeManager) UpdatePodStatus

func (FakeManager) UpdatePodStatus(_ *v1.Pod, podStatus *v1.PodStatus)

UpdatePodStatus simulates updating the Pod Status.

Jump to

Keyboard shortcuts

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