pod

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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 WithFields

func WithFields(fs map[string]string) Option

func WithForOpts

func WithForOpts(fopts ...builder.ForOption) Option

func WithLabels

func WithLabels(ls map[string]string) Option

func WithManager

func WithManager(mgr manager.Manager) Option

func WithNamespace

func WithNamespace(ns string) Option

func WithOnErrorFunc

func WithOnErrorFunc(f func(err error)) Option

func WithOnReconcileFunc

func WithOnReconcileFunc(
	f func(ctx context.Context, pod *corev1.Pod) (reconcile.Result, error),
) Option

type Pod

type Pod struct {
	Name        string
	NodeName    string
	Namespace   string
	IP          string
	CPULimit    float64
	CPURequest  float64
	MemLimit    float64
	MemRequest  float64
	Labels      map[string]string
	Annotations map[string]string
}

type PodWatcher

type PodWatcher k8s.ResourceController

func New

func New(opts ...Option) PodWatcher

Jump to

Keyboard shortcuts

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