burner

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DynamicClient dynamic.Interface

Functions

func CleanupNamespaceResourcesUsingGVR added in v1.7.13

func CleanupNamespaceResourcesUsingGVR(ctx context.Context, objects []object, namespacesToDelete []string, jobName string)

Cleanup resources specific to kube-burner with in a given list of namespaces

func CleanupNamespaces

func CleanupNamespaces(ctx context.Context, l metav1.ListOptions, cleanupWait bool)

CleanupNamespaces deletes namespaces with the given selector

func CleanupNonNamespacedResources added in v1.7.5

func CleanupNonNamespacedResources(ctx context.Context, l metav1.ListOptions, cleanupWait bool)

Cleanup non-namespaced resources with the given selector

func CleanupNonNamespacedResourcesUsingGVR added in v1.7.6

func CleanupNonNamespacedResourcesUsingGVR(ctx context.Context, executorList []Executor, cleanupWait bool)

Cleanup non-namespaced resources using executor list

func RetryWithExponentialBackOff added in v0.9.1

func RetryWithExponentialBackOff(fn wait.ConditionFunc, duration time.Duration, factor, jitter float64, timeout time.Duration) error

RetryWithExponentialBackOff a utility for retrying the given function with exponential backoff.

func Run added in v1.4.1

func Run(configSpec config.Spec, prometheusClients []*prometheus.Prometheus, alertMs []*alerting.AlertManager, indexer *indexers.Indexer, timeout time.Duration, metadata map[string]interface{}) (int, error)

func VerifyContainerRegistry added in v1.7.6

func VerifyContainerRegistry(restConfig *rest.Config) bool

Verifies container registry and reports its status

Types

type Executor

type Executor struct {
	config.Job
	// contains filtered or unexported fields
}

Executor contains the information required to execute a job

func (*Executor) RunCreateJob

func (ex *Executor) RunCreateJob(iterationStart, iterationEnd int, waitListNamespaces *[]string)

RunCreateJob executes a creation job

func (*Executor) RunCreateJobWithChurn added in v0.17.0

func (ex *Executor) RunCreateJobWithChurn()

RunCreateJobWithChurn executes a churn creation job

func (*Executor) RunDeleteJob

func (ex *Executor) RunDeleteJob()

RunDeleteJob executes a deletion job

func (*Executor) RunPatchJob added in v0.15.2

func (ex *Executor) RunPatchJob()

RunPatchJob executes a patch job

func (*Executor) Verify

func (ex *Executor) Verify() bool

Verify verifies the number of created objects

type NestedPod added in v0.15.1

type NestedPod struct {
	// Spec represents the object spec
	Spec struct {
		Template struct {
			corev1.PodSpec `json:"spec"`
		} `json:"template"`
	} `json:"spec"`
}

NestedPod represents a pod nested in a higher level object such as deployment or a daemonset

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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