internal

package
v0.0.0-...-418629e Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_JS_CLIENT_IMG_NAME = "host.docker.internal:5000/test-apps/js/client"
	DEFAULT_JS_SERVER_IMG_NAME = "host.docker.internal:5000/test-apps/js/server"
)
View Source
const (
	DEFAULT_CONTROLLER_IMG_NAME = "host.docker.internal:5000/controller"
	DEFAULT_PROXY_IMG_NAME      = "host.docker.internal:5000/telemetry-proxy"
	DEFAULT_IMG_VERSION         = "latest"
)
View Source
const (
	DEFAULT_LUMIGO_ENDPOINT = "https://ga-otlp.lumigo-tracer-edge.golumigo.com"
)

Variables

View Source
var (
	ContextKeyRunId                       = ContextKey("run-id")
	ContextKeyKubernetesClusterName       = ContextKey("kubernetes/cluster/name")
	ContextKeyOtlpSinkConfigPath          = ContextKey("otlp-sink/config")
	ContextKeyOtlpSinkDataPath            = ContextKey("otlp-sink/data")
	ContextKeyLumigoEndpoint              = ContextKey("lumigo/endpoint")
	ContextKeyLumigoOperatorDebug         = ContextKey("lumigo/debug")
	ContextKeyLumigoToken                 = ContextKey("lumigo/token")
	ContextKeyOperatorControllerImage     = ContextKey("lumigo/operator/images/controller")
	ContextKeyOperatorTelemetryProxyImage = ContextKey("lumigo/operator/images/proxy")
	ContextKeySendDataToLumigo            = ContextKey("lumigo/upstream/send_data")
	ContextTestAppJsClientImageName       = ContextKey("test-apps/js/client/image/name")
	ContextTestAppJsServerImageName       = ContextKey("test-apps/js/server/image/name")
)

Functions

func BuildDockerImageAndExportArchive

func BuildDockerImageAndExportArchive(imageName, sourceFolder, imageArchivePath string, logger *log.Logger) env.Func

func LoadDockerImageArchiveToCluster

func LoadDockerImageArchiveToCluster(kindClusterName, containerImageArchivePath string, logger *log.Logger) env.Func

func LoadDockerImageByNameToCluster

func LoadDockerImageByNameToCluster(kindClusterName, containerImageName string, logger *log.Logger) env.Func

func LumigoOperatorEnvFunc

func LumigoOperatorEnvFunc(lumigoNamespace string, otlpSinkUrl string, logger logr.Logger) func(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func LumigoOperatorFeature

func LumigoOperatorFeature(lumigoNamespace string, otlpSinkUrl string, logger logr.Logger) features.Feature

func NewLumigo

func NewLumigo(namespace, name, lumigoTokenSecretName, lumigoTokenSecretKey string, injectionEnabled bool) *operatorv1alpha1.Lumigo

func OtlpSinkEnvFunc

func OtlpSinkEnvFunc(namespaceName string, deploymentName string, otlpCollectorImage string, logger logr.Logger) (func(ctx context.Context, cfg *envconf.Config) (context.Context, error), string)

func OtlpSinkFeature

func OtlpSinkFeature(namespaceName string, deploymentName string, otlpCollectorImage string, logger logr.Logger) (features.Feature, string)

Types

type ContextKey

type ContextKey string

func (ContextKey) String

func (c ContextKey) String() string

Jump to

Keyboard shortcuts

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