controllers

package
v0.0.0-...-525fac3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const LIBRARY_NAMESPACE = "cnsbench-library"

Variables

This section is empty.

Functions

func CheckInit

func CheckInit(c client.Client, workloads []cnsbench.Workload) (bool, error)

func CountCompletions

func CountCompletions(c client.Client, workloadName string) (int, int, error)

func JobsComplete

func JobsComplete(c client.Client, selector labels.Selector) (int, int, error)

func PVCsComplete

func PVCsComplete(c client.Client, selector labels.Selector) (int, int, error)

func PodsComplete

func PodsComplete(c client.Client, selector labels.Selector) (int, int, error)

func StatefulSetsComplete

func StatefulSetsComplete(c client.Client, selector labels.Selector) (int, int, error)

Types

type BenchmarkReconciler

type BenchmarkReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme

	ScriptsDir string
	// contains filtered or unexported fields
}

BenchmarkReconciler reconciles a Benchmark object

func (*BenchmarkReconciler) CreateSnapshot

func (r *BenchmarkReconciler) CreateSnapshot(bm *cnsbench.Benchmark, s cnsbench.Snapshot, actionName string) error

func (*BenchmarkReconciler) CreateVolume

func (r *BenchmarkReconciler) CreateVolume(bm *cnsbench.Benchmark, vol cnsbench.Volume)

func (*BenchmarkReconciler) DeleteObj

func (*BenchmarkReconciler) Reconcile

func (r *BenchmarkReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*BenchmarkReconciler) ReconcileInstances

func (r *BenchmarkReconciler) ReconcileInstances(bm *cnsbench.Benchmark, workloads []cnsbench.Workload) error

func (*BenchmarkReconciler) RunWorkload

func (r *BenchmarkReconciler) RunWorkload(bm *cnsbench.Benchmark, a cnsbench.Workload, workloadName string) error

func (*BenchmarkReconciler) ScaleObj

func (r *BenchmarkReconciler) ScaleObj(bm *cnsbench.Benchmark, s cnsbench.Scale, numReplicas int) error

func (*BenchmarkReconciler) SetupWithManager

func (r *BenchmarkReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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