mutation

package
v0.0.0-...-99f3f31 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const LdPreloadEnvVarName = "LD_PRELOAD"
View Source
const LdPreloadEnvVarValue = LumigoInjectorVolumeMountPoint + "/injector/lumigo_injector.so"
View Source
const LumigoAutoTraceLabelKey = "lumigo.auto-trace"
View Source
const LumigoAutoTraceLabelSkipNextInjectorValue = "skip-next-injector"
View Source
const LumigoAutoTraceLabelVersionPrefixValue = "lumigo-operator.v"
View Source
const LumigoEndpointEnvVarName = "LUMIGO_ENDPOINT"
View Source
const LumigoInjectorContainerName = "lumigo-injector"
View Source
const LumigoInjectorVolumeMountPoint = "/opt/lumigo"
View Source
const LumigoInjectorVolumeName = "lumigo-injector"
View Source
const LumigoTracerTokenEnvVarName = "LUMIGO_TRACER_TOKEN"
View Source
const TargetDirectoryEnvVarName = "TARGET_DIRECTORY"
View Source
const TargetDirectoryPath = "/target"

Variables

This section is empty.

Functions

func BeInstrumentedWithLumigo

func BeInstrumentedWithLumigo(lumigoOperatorVersion string, lumigoInjectorImage string, lumigoEndpointUrl string) types.GomegaMatcher

func BeTheLumigoInjectorContainer

func BeTheLumigoInjectorContainer(lumigoInjectorImage string) types.GomegaMatcher

func BeTheLumigoInjectorVolume

func BeTheLumigoInjectorVolume() types.GomegaMatcher

Types

type Mutator

type Mutator interface {
	GetAutotraceLabelValue() string
	InjectLumigoInto(resource interface{}) (bool, error)
	InjectLumigoIntoAppsV1DaemonSet(daemonSet *appsv1.DaemonSet) (bool, error)
	InjectLumigoIntoAppsV1Deployment(deployment *appsv1.Deployment) (bool, error)
	InjectLumigoIntoAppsV1ReplicaSet(replicaSet *appsv1.ReplicaSet) (bool, error)
	InjectLumigoIntoAppsV1StatefulSet(statefulSet *appsv1.StatefulSet) (bool, error)
	InjectLumigoIntoBatchV1CronJob(deployment *batchv1.CronJob) (bool, error)
	InjectLumigoIntoBatchV1Job(deployment *batchv1.Job) (bool, error)
	RemoveLumigoFrom(resource interface{}) (bool, error)
	RemoveLumigoFromAppsV1DaemonSet(daemonSet *appsv1.DaemonSet) (bool, error)
	RemoveLumigoFromAppsV1Deployment(deployment *appsv1.Deployment) (bool, error)
	RemoveLumigoFromAppsV1ReplicaSet(replicaSet *appsv1.ReplicaSet) (bool, error)
	RemoveLumigoFromAppsV1StatefulSet(statefulSet *appsv1.StatefulSet) (bool, error)
	RemoveLumigoFromBatchV1CronJob(deployment *batchv1.CronJob) (bool, error)
	RemoveLumigoFromBatchV1Job(deployment *batchv1.Job) (bool, error)
}

func NewMutator

func NewMutator(Log *logr.Logger, LumigoToken *operatorv1alpha1.Credentials, LumigoOperatorVersion string, LumigoInjectorImage string, TelemetryProxyOtlpServiceUrl string) (Mutator, error)

Jump to

Keyboard shortcuts

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