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 ¶
Reconciler provides fields from manager to reconciler
func (*Reconciler) Reconcile ¶
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