testutil

package
v0.0.0-...-a7576c3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDeploymentAnnotationRetained

func AssertDeploymentAnnotationRetained(ctx context.Context, k8sClient client.Client, dep *appsv1.Deployment, annotationKey string, annotationValue string)

func AssertInstrumentedApplicationDeleted

func AssertInstrumentedApplicationDeleted(ctx context.Context, k8sClient client.Client, instrumentedApplication *odigosv1.InstrumentedApplication)

func AssertInstrumentedApplicationRetained

func AssertInstrumentedApplicationRetained(ctx context.Context, k8sClient client.Client, instrumentedApplication *odigosv1.InstrumentedApplication)

func AssertReportedNameAnnotationDeletedDaemonSet

func AssertReportedNameAnnotationDeletedDaemonSet(ctx context.Context, k8sClient client.Client, ds *appsv1.DaemonSet)

func AssertReportedNameAnnotationDeletedDeployment

func AssertReportedNameAnnotationDeletedDeployment(ctx context.Context, k8sClient client.Client, dep *appsv1.Deployment)

func AssertReportedNameAnnotationDeletedStatefulSet

func AssertReportedNameAnnotationDeletedStatefulSet(ctx context.Context, k8sClient client.Client, sts *appsv1.StatefulSet)

func DeleteOdigosInstrumentationLabel

func DeleteOdigosInstrumentationLabel[W client.Object](obj W) W

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 NewMockNamespace() *corev1.Namespace

func NewMockTestDaemonSet

func NewMockTestDaemonSet(ns *corev1.Namespace) *appsv1.DaemonSet

func NewMockTestDeployment

func NewMockTestDeployment(ns *corev1.Namespace) *appsv1.Deployment

func NewMockTestStatefulSet

func NewMockTestStatefulSet(ns *corev1.Namespace) *appsv1.StatefulSet

func SetOdigosInstrumentationDisabled

func SetOdigosInstrumentationDisabled[W client.Object](obj W) W

func SetOdigosInstrumentationEnabled

func SetOdigosInstrumentationEnabled[W client.Object](obj W) W

func SetReportedNameAnnotation

func SetReportedNameAnnotation[W client.Object](obj W, reportedName string) W

Types

This section is empty.

Jump to

Keyboard shortcuts

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