k8s

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package k8s provides kubernetes control functionality

Package k8s provides kubernetes control functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Start(ctx context.Context) (<-chan error, error)
}

func New

func New(opts ...Option) (cl Controller, err error)

type Option

type Option func(*controller) error

func WithControllerName

func WithControllerName(name string) Option

func WithDisableLeaderElection

func WithDisableLeaderElection() Option

func WithEnableLeaderElection

func WithEnableLeaderElection() Option

func WithErrGroup

func WithErrGroup(eg errgroup.Group) Option

func WithManager

func WithManager(mgr manager.Manager) Option

func WithMetricsAddress

func WithMetricsAddress(addr string) Option

func WithResourceController

func WithResourceController(rc ResourceController) Option

type ResourceController

type ResourceController interface {
	GetName() string
	NewReconciler(ctx context.Context, mgr manager.Manager) reconcile.Reconciler
	For() runtime.Object
	Owns() runtime.Object
	Watches() (*source.Kind, handler.EventHandler)
}

Directories

Path Synopsis
metrics
node
Package node provides kubernetes node information and preriodically update Package node provides kubernetes node information and preriodically update
Package node provides kubernetes node information and preriodically update Package node provides kubernetes node information and preriodically update
pod
Package pod provides kubernetes pod information and preriodically update Package pod provides kubernetes pod information and preriodically update
Package pod provides kubernetes pod information and preriodically update Package pod provides kubernetes pod information and preriodically update
Package node provides kubernetes node information and preriodically update Package node provides kubernetes node information and preriodically update
Package node provides kubernetes node information and preriodically update Package node provides kubernetes node information and preriodically update
Package pod provides kubernetes pod information and preriodically update Package pod provides kubernetes pod information and preriodically update
Package pod provides kubernetes pod information and preriodically update Package pod provides kubernetes pod information and preriodically update

Jump to

Keyboard shortcuts

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