pod

package
v1.5.19 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodFilter

type PodFilter func([]v1.Pod) []v1.Pod
var PodNetworkFilter PodFilter = func(pods []v1.Pod) []v1.Pod {
	var filtered []v1.Pod
	for _, pod := range pods {
		if !pod.Spec.HostNetwork {
			filtered = append(filtered, pod)
		}
	}
	return filtered
}

type PodWatcher

type PodWatcher struct {
	ReconcileFuncs []reconcile.Func
	// contains filtered or unexported fields
}

func New

func New(nodename string) *PodWatcher

func (*PodWatcher) PodNotifierFunc

func (p *PodWatcher) PodNotifierFunc(f PodFilter, listeners ...podListener) reconcile.Func

func (*PodWatcher) Reconcile

func (p *PodWatcher) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*PodWatcher) SetupWithManager

func (p *PodWatcher) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager Sets up the reconciler with a new manager, filtering using NodeNetworkConfigFilter on nodeName.

Jump to

Keyboard shortcuts

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