utils

package
v0.0.0-...-ebfec82 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DatadogAgentGVR is the GroupVersionResource for DatadogAgent CRD
	DatadogAgentGVR = schema.GroupVersionResource{
		Group:    "datadoghq.com",
		Version:  "v2alpha1",
		Resource: "datadogagents",
	}

	// DatadogAgentInternalGVR is the GroupVersionResource for DatadogAgentInternal CRD
	DatadogAgentInternalGVR = schema.GroupVersionResource{
		Group:    "datadoghq.com",
		Version:  "v1alpha1",
		Resource: "datadogagentinternals",
	}
)

Functions

func DeleteAllDatadogResources

func DeleteAllDatadogResources(ctx context.Context, k8sConfig *rest.Config, namespace string) error

DeleteAllDatadogResources deletes all DatadogAgent and DatadogAgentInternal resources in the specified namespace. This is useful for cleanup before Pulumi stack destroy to avoid CRD deletion timeout caused by finalizers blocking deletion.

func VerifyAgentPodLogs

func VerifyAgentPodLogs(c *assert.CollectT, collectorOutput string)

func VerifyAgentPods

func VerifyAgentPods(t *testing.T, c *assert.CollectT, namespace string, k8sClient kubeClient.Interface, selector string)

func VerifyAgentTraces

func VerifyAgentTraces(c *assert.CollectT, collectorOutput string)

func VerifyCheck

func VerifyCheck(c *assert.CollectT, collectorOutput string, checkName string)

func VerifyNumPodsForSelector

func VerifyNumPodsForSelector(t *testing.T, c *assert.CollectT, namespace string, k8sClient kubeClient.Interface, numPods int, selector string)

func VerifyOperator

func VerifyOperator(t *testing.T, c *assert.CollectT, namespace string, k8sClient kubeClient.Interface)

Types

This section is empty.

Jump to

Keyboard shortcuts

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