Documentation

Overview

Package pod provides kubernetes pod information and preriodically update

Package pod provides kubernetes pod information and preriodically update

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*reconciler) error

func WithControllerName

func WithControllerName(name string) Option

func WithManager

func WithManager(mgr manager.Manager) Option

func WithOnErrorFunc

func WithOnErrorFunc(f func(err error)) Option

func WithOnReconcileFunc

func WithOnReconcileFunc(f func(podList map[string][]Pod)) Option

type Pod

type Pod struct {
	Name       string
	NodeName   string
	Namespace  string
	IP         string
	CPULimit   float64
	CPURequest float64
	MemLimit   float64
	MemRequest float64
}

type PodWatcher

type PodWatcher k8s.ResourceController

func New

func New(opts ...Option) PodWatcher

Source Files