k8s

package
v1.7.14 Latest Latest
Warning

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

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

Documentation

Overview

Package k8s provides kubernetes control functionality

Package k8s provides kubernetes control functionality

Index

Constants

View Source
const (
	DeletePropagationBackground = metav1.DeletePropagationBackground
	WatchDeletedEvent           = watch.Deleted
	SelectionOpEquals           = selection.Equals
	SelectionOpExists           = selection.Exists
	PodIndexLabel               = appsv1.PodIndexLabel
)

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 CreateOption added in v1.7.13

type CreateOption = client.CreateOption

type CreateOptions added in v1.7.13

type CreateOptions = client.CreateOptions

type CronJob added in v1.7.13

type CronJob = batchv1.CronJob

type DeleteAllOfOptions added in v1.7.13

type DeleteAllOfOptions = client.DeleteAllOfOptions

type DeleteOptions added in v1.7.13

type DeleteOptions = client.DeleteOptions

type Deployment added in v1.7.13

type Deployment = appsv1.Deployment

type DeploymentList added in v1.7.13

type DeploymentList = appsv1.DeploymentList

type EnvVar added in v1.7.13

type EnvVar = corev1.EnvVar

type GetOption added in v1.7.13

type GetOption = client.GetOption

type GetOptions added in v1.7.13

type GetOptions = client.GetOptions

type InNamespace added in v1.7.13

type InNamespace = client.InNamespace

type Job added in v1.7.13

type Job = batchv1.Job

type JobList added in v1.7.13

type JobList = batchv1.JobList

type JobStatus added in v1.7.13

type JobStatus = batchv1.JobStatus

type ListOption added in v1.7.13

type ListOption = client.ListOption

type ListOptions added in v1.7.13

type ListOptions = client.ListOptions

type Manager added in v1.7.11

type Manager = manager.Manager

type MatchingLabels added in v1.7.13

type MatchingLabels = client.MatchingLabels

type Object added in v1.7.13

type Object = client.Object

type ObjectKey added in v1.7.13

type ObjectKey = client.ObjectKey

type ObjectMeta added in v1.7.13

type ObjectMeta = metav1.ObjectMeta

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 WithErrGroup

func WithErrGroup(eg errgroup.Group) Option

func WithLeaderElection added in v1.7.13

func WithLeaderElection(enabled bool, id, namespace string) 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 PersistentVolumeClaim added in v1.7.13

type PersistentVolumeClaim = corev1.PersistentVolumeClaim

type PersistentVolumeClaimList added in v1.7.13

type PersistentVolumeClaimList = corev1.PersistentVolumeClaimList

type PersistentVolumeClaimSpec added in v1.7.13

type PersistentVolumeClaimSpec = corev1.PersistentVolumeClaimSpec

type Pod added in v1.7.13

type Pod = corev1.Pod

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)
}

type Result added in v1.7.13

type Result = reconcile.Result

type TypedLocalObjectReference added in v1.7.13

type TypedLocalObjectReference = corev1.TypedLocalObjectReference

type UpdateOptions added in v1.7.13

type UpdateOptions = client.UpdateOptions

type VolumeSnapshot added in v1.7.13

type VolumeSnapshot = snapshotv1.VolumeSnapshot

type VolumeSnapshotList added in v1.7.13

type VolumeSnapshotList = snapshotv1.VolumeSnapshotList

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
v2
pod
Package pod provides kubernetes pod information and preriodically update
Package pod provides kubernetes pod information and preriodically update
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