pod

package
v3.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 33 Imported by: 2

Documentation

Overview

Package pod implements pod life cycle management

Package pod reconciles pods and takes care of gc events

Package pod reconciles pods and takes care of gc events

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller added in v3.6.5

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

Controller is a controller for pods

func NewController added in v3.6.5

func NewController(ctx context.Context, config *argoConfig.Config, restConfig *rest.Config, namespace string, clientSet kubernetes.Interface, wfInformer cache.SharedIndexInformer, metrics *metrics.Metrics, callback podEventCallback) *Controller

NewController creates a pod controller

func (*Controller) DeletePod added in v3.6.5

func (c *Controller) DeletePod(namespace, name string)

func (*Controller) EnactAnyPodCleanup added in v3.6.5

func (c *Controller) EnactAnyPodCleanup(
	selector labels.Selector,
	pod *apiv1.Pod,
	strategy wfv1.PodGCStrategy,
	workflowPhase wfv1.WorkflowPhase,
	delay time.Duration,
)

func (*Controller) GetPod added in v3.6.5

func (c *Controller) GetPod(namespace string, podName string) (*apiv1.Pod, error)

func (*Controller) GetPodPhaseMetrics added in v3.6.5

func (c *Controller) GetPodPhaseMetrics() map[string]int64

GetPodPhaseMetrics obtains pod metrics

func (*Controller) GetPodsByIndex added in v3.6.5

func (c *Controller) GetPodsByIndex(index, key string) ([]interface{}, error)

TODO - return []*apiv1.Pod instead, save on duplicating this

func (*Controller) HasSynced added in v3.6.5

func (c *Controller) HasSynced() func() bool

func (*Controller) RemoveFinalizer added in v3.6.5

func (c *Controller) RemoveFinalizer(namespace, name string)

func (*Controller) Run added in v3.6.5

func (c *Controller) Run(ctx context.Context, workers int)

Run runs the pod controller

func (*Controller) TerminateContainers added in v3.6.5

func (c *Controller) TerminateContainers(namespace, name string)

func (*Controller) TestingPodInformer added in v3.6.5

func (c *Controller) TestingPodInformer() cache.SharedIndexInformer

func (*Controller) TestingProcessNextItem added in v3.6.5

func (c *Controller) TestingProcessNextItem(ctx context.Context) bool

func (*Controller) TestingQueueNumRequeues added in v3.6.5

func (c *Controller) TestingQueueNumRequeues(key string) int

Jump to

Keyboard shortcuts

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