k8s

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT-0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodController

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

func NewPodController

func NewPodController(logger *slog.Logger, clientset *kubernetes.Clientset, handler PodHandler, config PodControllerConfig) (*PodController, error)

func (*PodController) Run

func (c *PodController) Run(stopCh <-chan struct{})

type PodControllerConfig

type PodControllerConfig struct {
	Namespace    string
	ResyncPeriod time.Duration
}

type PodHandler

type PodHandler interface {
	AddOrUpdate(key string, pod v1.Pod) error
	Delete(key string) error
}

Jump to

Keyboard shortcuts

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