qperf

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientJob

func NewClientJob(cr *perfv1alpha1.Qperf) *batchv1.Job

NewClientJob creates an Qperf Client Job (targeting the Server Deployment via the Server Service) from the provided Qperf Benchmark Definition.

func NewServerDeployment

func NewServerDeployment(cr *perfv1alpha1.Qperf) *appsv1.Deployment

NewServerDeployment create a qperf server deployment from the provided Qperf Benchmark Definition.

func NewServerService

func NewServerService(cr *perfv1alpha1.Qperf) *corev1.Service

NewServerService creates k8s headless service (which targets the server deployment) from the Qperf Benchmark Definition

Types

type Reconciler

type Reconciler struct {
	K8S k8s.Access
	Log logr.Logger
}

Reconciler provides fields from manager to reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile Qperf Benchmark Requests by creating:

  • qperf server deployment
  • qperf server service
  • qperf client pod

The creation of qperf client pod is postponed until the server deployment completes. Once the qperf client pod is completed, the server deployment and service objects are removed from k8s.

func (*Reconciler) SetupWithManager

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

SetupWithManager registers the QperfReconciler with the provided manager

Jump to

Keyboard shortcuts

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