Documentation

Overview

Package node provides kubernetes node information and preriodically update

Package node provides kubernetes node information and preriodically update

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Name    string
	CPU     float64
	Mem     float64
	Pods    int64
	Storage int64
}

type NodeWatcher

type NodeWatcher k8s.ResourceController

func New

func New(opts ...Option) NodeWatcher

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(nodes map[string]Node)) Option

Source Files