Documentation ¶
Index ¶
- func CreateJobs(ctx context.Context, log logr.Logger, k6 *v1alpha1.K6, r *K6Reconciler) (ctrl.Result, error)
- func FinishJobs(ctx context.Context, log logr.Logger, k6 *v1alpha1.K6, r *K6Reconciler) (allFinished bool)
- func InitializeJobs(ctx context.Context, log logr.Logger, k6 *v1alpha1.K6, r *K6Reconciler) (res ctrl.Result, err error)
- func RunValidations(ctx context.Context, log logr.Logger, k6 *v1alpha1.K6, r *K6Reconciler) (res ctrl.Result, err error)
- func SetupCloudTest(ctx context.Context, log logr.Logger, k6 *v1alpha1.K6, r *K6Reconciler) (res ctrl.Result, err error)
- func StartJobs(ctx context.Context, log logr.Logger, k6 *v1alpha1.K6, r *K6Reconciler) (res ctrl.Result, err error)
- type K6Reconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJobs ¶
func CreateJobs(ctx context.Context, log logr.Logger, k6 *v1alpha1.K6, r *K6Reconciler) (ctrl.Result, error)
CreateJobs creates jobs that will spawn k6 pods for distributed test
func FinishJobs ¶
func FinishJobs(ctx context.Context, log logr.Logger, k6 *v1alpha1.K6, r *K6Reconciler) (allFinished bool)
FinishJobs checks if the runners pods have finished execution.
func InitializeJobs ¶
func InitializeJobs(ctx context.Context, log logr.Logger, k6 *v1alpha1.K6, r *K6Reconciler) (res ctrl.Result, err error)
InitializeJobs creates jobs that will run initial checks for distributed test if any are necessary
func RunValidations ¶ added in v0.0.9
func SetupCloudTest ¶ added in v0.0.9
Types ¶
type K6Reconciler ¶
K6Reconciler reconciles a K6 object
func (*K6Reconciler) Reconcile ¶
Reconcile takes a K6 object and takes the appropriate action in the cluster +kubebuilder:rbac:groups=k6.io,resources=k6s,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=k6.io,resources=k6s/status,verbs=get;update;patch +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list; +kubebuilder:rbac:groups=batch,resources=jobs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;create;update
func (*K6Reconciler) SetupWithManager ¶
func (r *K6Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up a managed controller that will reconcile all events for the K6 CRD