test

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	workloads.WorkloadReconciler
	Log logr.Logger
}

WorkloadReconciler reconciles a Test object +kubebuilder:object:generate=false

func (*Reconciler) Reconcile

func (r *Reconciler) 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.

func (*Reconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type TestWorkloadGenerator

type TestWorkloadGenerator struct {
	TName            string
	TNamespace       string
	TTraffic         bool
	TLabels          map[string]string
	TSelector        map[string]string
	TTrafficSelector map[string]string
}

func (*TestWorkloadGenerator) Deployment

func (*TestWorkloadGenerator) GetKey

func (*TestWorkloadGenerator) GetLabels

func (gen *TestWorkloadGenerator) GetLabels() map[string]string

func (*TestWorkloadGenerator) GetSelector

func (gen *TestWorkloadGenerator) GetSelector() map[string]string

func (*TestWorkloadGenerator) HPASpec

func (*TestWorkloadGenerator) MonitoredEndpoints

func (gen *TestWorkloadGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint

func (*TestWorkloadGenerator) PDBSpec

func (*TestWorkloadGenerator) SendTraffic

func (gen *TestWorkloadGenerator) SendTraffic() bool

func (*TestWorkloadGenerator) Services added in v0.17.3

func (*TestWorkloadGenerator) TrafficSelector added in v0.17.3

func (gen *TestWorkloadGenerator) TrafficSelector() map[string]string

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 is a test API definition +kubebuilder:object:generate=true +groupName=example.com
Package v1alpha1 is a test API definition +kubebuilder:object:generate=true +groupName=example.com

Jump to

Keyboard shortcuts

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