controllers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "artillery-operator"

	Version = "alpha"

	WorkerImage = "ghcr.io/artilleryio/artillery-metrics-enabled:v2.0.0"

	TestScriptVol = "test-script"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadTestReconciler

type LoadTestReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	Recorder        record.EventRecorder
	TelemetryConfig telemetry.Config
	TelemetryClient posthog.Client
}

LoadTestReconciler reconciles a LoadTest object

func (*LoadTestReconciler) Reconcile

func (r *LoadTestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*LoadTestReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ObservedStatus

type ObservedStatus uint
const (
	LoadTestInactive ObservedStatus = iota
	LoadTestActive
	LoadTestCompleted
)

Jump to

Keyboard shortcuts

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