utils

package
v0.0.0-...-cb82673 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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