pod

package
v0.0.0-...-35c3564 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// name of the pod controller finalizer
	PodControllerFinalizerName = "pod.firefly.io/finalizer"
)

Variables

This section is empty.

Functions

func ClusterMetaNamespaceKeyFunc

func ClusterMetaNamespaceKeyFunc(pod *v1.Pod) (string, error)

Types

type PodController

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

func NewPodController

func NewPodController(
	client kubernetes.Interface,
	podInformer coreinformers.PodInformer,
	clusterInformer clusterinformers.ClusterInformer,
	workerPodsInformer coreinformers.PodInformer,
	resyncPeriod time.Duration) (*PodController, error)

NewPodController returns a new *Controller.

func (*PodController) Run

func (ctrl *PodController) Run(ctx context.Context, workers int)

Run will not return until stopCh is closed. workers determines how many cluster will be handled in parallel.

Jump to

Keyboard shortcuts

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