Documentation ¶
Index ¶
- func AssertDepContainerEnvRemainEmpty(ctx context.Context, k8sClient client.Client, dep *appsv1.Deployment)
- func AssertDepContainerSingleEnv(ctx context.Context, k8sClient client.Client, dep *appsv1.Deployment, ...)
- func AssertDepContainerSingleEnvBecomesEmpty(ctx context.Context, k8sClient client.Client, dep *appsv1.Deployment)
- func AssertDepContainerSingleEnvRemainsSame(ctx context.Context, k8sClient client.Client, dep *appsv1.Deployment, ...)
- func AssertDeploymentAnnotationRetained(ctx context.Context, k8sClient client.Client, dep *appsv1.Deployment, ...)
- func AssertInstrumentedApplicationDeleted(ctx context.Context, k8sClient client.Client, ...)
- func AssertInstrumentedApplicationRetained(ctx context.Context, k8sClient client.Client, ...)
- func AssertReportedNameAnnotationDeletedDaemonSet(ctx context.Context, k8sClient client.Client, ds *appsv1.DaemonSet)
- func AssertReportedNameAnnotationDeletedDeployment(ctx context.Context, k8sClient client.Client, dep *appsv1.Deployment)
- func AssertReportedNameAnnotationDeletedStatefulSet(ctx context.Context, k8sClient client.Client, sts *appsv1.StatefulSet)
- func DeleteOdigosInstrumentationLabel[W client.Object](obj W) W
- func IsDeploymentSingleContainerSingleEnv(obj *appsv1.Deployment, envName string, envValue string) bool
- func MockGetDefaultSDKs() map[common.ProgrammingLanguage]common.OtelSdk
- func NewMockDataCollection() *odigosv1.CollectorsGroup
- func NewMockEmptyInstrumentationRule(name, ns string) *odigosv1.InstrumentationRule
- func NewMockInstrumentedApplication(workloadObject client.Object) *odigosv1.InstrumentedApplication
- func NewMockNamespace() *corev1.Namespace
- func NewMockTestDaemonSet(ns *corev1.Namespace) *appsv1.DaemonSet
- func NewMockTestDeployment(ns *corev1.Namespace) *appsv1.Deployment
- func NewMockTestStatefulSet(ns *corev1.Namespace) *appsv1.StatefulSet
- func NewOdigosSystemNamespace() *corev1.Namespace
- func SetDefaultSDK(language common.ProgrammingLanguage, sdk common.OtelSdk)
- func SetDeploymentContainerEnv(obj *appsv1.Deployment, envName string, envValue string) *appsv1.Deployment
- func SetInstrumentedApplicationContainer(obj *odigosv1.InstrumentedApplication, envName *string, envValue *string, ...) *odigosv1.InstrumentedApplication
- func SetOdigosInstrumentationDisabled[W client.Object](obj W) W
- func SetOdigosInstrumentationEnabled[W client.Object](obj W) W
- func SetReportedNameAnnotation[W client.Object](obj W, reportedName string) W
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDeploymentSingleContainerSingleEnv ¶
func IsDeploymentSingleContainerSingleEnv(obj *appsv1.Deployment, envName string, envValue string) bool
func MockGetDefaultSDKs ¶
func MockGetDefaultSDKs() map[common.ProgrammingLanguage]common.OtelSdk
func NewMockDataCollection ¶
func NewMockDataCollection() *odigosv1.CollectorsGroup
func NewMockEmptyInstrumentationRule ¶
func NewMockEmptyInstrumentationRule(name, ns string) *odigosv1.InstrumentationRule
func NewMockInstrumentedApplication ¶
func NewMockInstrumentedApplication(workloadObject client.Object) *odigosv1.InstrumentedApplication
givin a workload object (deployment, daemonset, statefulset) return a mock instrumented application with a single container with the GoProgrammingLanguage
func NewMockNamespace ¶
func NewMockTestDeployment ¶
func NewMockTestDeployment(ns *corev1.Namespace) *appsv1.Deployment
func NewMockTestStatefulSet ¶
func NewMockTestStatefulSet(ns *corev1.Namespace) *appsv1.StatefulSet
func SetDefaultSDK ¶
func SetDefaultSDK(language common.ProgrammingLanguage, sdk common.OtelSdk)
func SetDeploymentContainerEnv ¶
func SetDeploymentContainerEnv(obj *appsv1.Deployment, envName string, envValue string) *appsv1.Deployment
func SetInstrumentedApplicationContainer ¶
func SetInstrumentedApplicationContainer(obj *odigosv1.InstrumentedApplication, envName *string, envValue *string, language common.ProgrammingLanguage) *odigosv1.InstrumentedApplication
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.