pod

package
v0.0.0-...-c2045be Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListWatcherAdapter

func NewListWatcherAdapter(c kubernetes.Interface, namespace string) operator.ListWatcher

NewListWatcherAdapter instantiates pod list watcher adapter

Types

type Handler

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

Handler process Pod state variations

func NewHandler

func NewHandler(st Pool) *Handler

NewHandler instantiates pod handler

func (*Handler) Created

func (h *Handler) Created(_ context.Context, obj runtime.Object)

Created on pod creation handler

func (*Handler) Deleted

func (h *Handler) Deleted(_ context.Context, obj runtime.Object)

Deleted on pod deleted handler

func (*Handler) Updated

func (h *Handler) Updated(ctx context.Context, new, old runtime.Object)

Updated on pod updated handler

type Pool

type Pool interface {
	AddWorkerIfNotExists(idx int, name string, IP net.IP) bool
	RemoveWorkerByName(name string)
}

Pool models an ordered set of workers

type Provider

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

Provider deletes pod to force pod fresh recreation

func NewProvider

func NewProvider(cl kubernetes.Interface, namespace string) *Provider

NewProvider instantiates pod refresher provider

func (*Provider) RefreshPod

func (p *Provider) RefreshPod(ctx context.Context, name string) error

RefreshPod deletes pod

Jump to

Keyboard shortcuts

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