fio

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomJobName

func CustomJobName(index int) string

CustomJobName returns the key of the custom job file with the given index in the config map

func IsCrValid added in v0.4.1

func IsCrValid(cr *perfv1alpha1.Fio) (valid bool, err error)

IsCrValid validates the given CR and raises error if semantic errors detected For fio, the VolumeSpec validity is checked

func NewConfigMap

func NewConfigMap(cr *perfv1alpha1.Fio) *corev1.ConfigMap

NewConfigMap creates a new configmap for the fio benchmark job

func NewJob

func NewJob(cr *perfv1alpha1.Fio) *batchv1.Job

NewJob creates a fio benchmark job

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 creates fio job(s) based on the custom resource(s)

func (*Reconciler) SetupWithManager

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

SetupWithManager registers the Reconciler with the provided manager

Jump to

Keyboard shortcuts

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