k8s

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package k8s provides kubernetes control functionality

Package k8s provides kubernetes control functionality

Index

Constants

This section is empty.

Variables

View Source
var Now = metav1.Now

Functions

This section is empty.

Types

type Controller

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

func New

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

type Manager added in v1.7.11

type Manager = manager.Manager

type Option

type Option func(*controller) error

func WithControllerName

func WithControllerName(name string) Option

func WithDialer added in v1.0.2

func WithDialer(der net.Dialer) 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 OwnerReference added in v1.7.11

type OwnerReference = metav1.OwnerReference

type ResourceController

type ResourceController interface {
	GetName() string
	NewReconciler(ctx context.Context, mgr manager.Manager) reconcile.Reconciler
	For() (client.Object, []builder.ForOption)
	Owns() (client.Object, []builder.OwnsOption)
	Watches() (client.Object, handler.EventHandler, []builder.WatchesOption)
}

Directories

Path Synopsis
Package client is Kubernetes client for getting resource from Kubernetes cluster.
Package client is Kubernetes client for getting resource from Kubernetes cluster.
metrics
node
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 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 svc provides kubernetes svc information and preriodically update
Package svc provides kubernetes svc information and preriodically update
vald
benchmark/job
Package job provides benchmark job crd information and preriodically update
Package job provides benchmark job crd information and preriodically update
benchmark/scenario
Package operator provides benchmark operator crd information and preriodically update
Package operator provides benchmark operator crd information and preriodically update

Jump to

Keyboard shortcuts

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