testutils

package
v1.0.0-rc.10 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugPrint

func DebugPrint(writer io.Writer, obj interface{})

DebugPrint prints a JSON representation of a compatible obj to given writer

func NewDatadogAgent

func NewDatadogAgent(ns, name, image string, options *NewDatadogAgentOptions) *datadoghqv1alpha1.DatadogAgent

NewDatadogAgent returns new DatadogAgent instance with is config hash

func NewDatadogAgentWithAPM added in v1.0.0

func NewDatadogAgentWithAPM(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithAPM returns an agent with APM enabled

func NewDatadogAgentWithAdmissionController added in v1.0.0

func NewDatadogAgentWithAdmissionController(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithAdmissionController returns an agent with APM enabled

func NewDatadogAgentWithCSPM added in v1.0.0

func NewDatadogAgentWithCSPM(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithCSPM returns an agent with CSPM enabled

func NewDatadogAgentWithCWS added in v1.0.0

func NewDatadogAgentWithCWS(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithCWS returns an agent with CWS enabled

func NewDatadogAgentWithClusterChecks added in v1.0.0

func NewDatadogAgentWithClusterChecks(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithClusterChecks returns an agent with cluster checks enabled

func NewDatadogAgentWithDogstatsd added in v1.0.0

func NewDatadogAgentWithDogstatsd(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithDogstatsd returns an agent with Dogstatsd enabled

func NewDatadogAgentWithEventCollection added in v1.0.0

func NewDatadogAgentWithEventCollection(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithEventCollection returns an agent with event collection enabled

func NewDatadogAgentWithExternalMetrics added in v1.0.0

func NewDatadogAgentWithExternalMetrics(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithExternalMetrics returns an agent with event collection enabled

func NewDatadogAgentWithGlobalConfigSettings added in v1.0.0

func NewDatadogAgentWithGlobalConfigSettings(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithGlobalConfigSettings returns an agent with some global settings set

func NewDatadogAgentWithKSM added in v1.0.0

func NewDatadogAgentWithKSM(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithKSM returns an agent with KSM enabled

func NewDatadogAgentWithLiveContainerCollection added in v1.0.0

func NewDatadogAgentWithLiveContainerCollection(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithLiveContainerCollection returns an agent with live container collection enabled

func NewDatadogAgentWithLiveProcessCollection added in v1.0.0

func NewDatadogAgentWithLiveProcessCollection(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithLiveProcessCollection returns an agent with LiveProcess collection enabled

func NewDatadogAgentWithLogCollection added in v1.0.0

func NewDatadogAgentWithLogCollection(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithLogCollection returns an agent with log collection enabled

func NewDatadogAgentWithNPM added in v1.0.0

func NewDatadogAgentWithNPM(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithNPM returns an agent with NPM enabled

func NewDatadogAgentWithOOMKill added in v1.0.0

func NewDatadogAgentWithOOMKill(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithOOMKill returns an agent with OOM kill enabled

func NewDatadogAgentWithOTLP added in v1.0.0

func NewDatadogAgentWithOTLP(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithOTLP returns an agent with OTLP enabled

func NewDatadogAgentWithOrchestratorExplorer added in v1.0.0

func NewDatadogAgentWithOrchestratorExplorer(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithOrchestratorExplorer returns an agent with the orchestrator explorer enabled

func NewDatadogAgentWithOverrides added in v1.0.0

func NewDatadogAgentWithOverrides(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithOverrides returns an agent with overrides set

func NewDatadogAgentWithPrometheusScrape added in v1.0.0

func NewDatadogAgentWithPrometheusScrape(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithPrometheusScrape returns an agent with Prometheus scraping enabled

func NewDatadogAgentWithTCPQueueLength added in v1.0.0

func NewDatadogAgentWithTCPQueueLength(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithTCPQueueLength returns an agent with TCP queue length enabled

func NewDatadogAgentWithUSM added in v1.0.0

func NewDatadogAgentWithUSM(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithUSM returns an agent with USM enabled

func NewDatadogAgentWithoutFeatures added in v1.0.0

func NewDatadogAgentWithoutFeatures(namespace string, name string) v2alpha1.DatadogAgent

NewDatadogAgentWithoutFeatures returns an agent without any features enabled

func NewNode

func NewNode(name string, labels map[string]string) *corev1.Node

NewNode returns a fake, but ready, K8S node

Types

type NewDatadogAgentOptions

type NewDatadogAgentOptions struct {
	ExtraLabels                  map[string]string
	ExtraAnnotations             map[string]string
	AgentDisabled                bool
	ClusterAgentDisabled         bool
	OrchestratorExplorerDisabled bool
	UseEDS                       bool
	APIKey                       string
	AppKey                       string
	Token                        string
	CustomConfig                 *datadoghqv1alpha1.CustomConfigSpec
	SecuritySpec                 *datadoghqv1alpha1.SecuritySpec
	VolumeMounts                 []v1.VolumeMount
}

NewDatadogAgentOptions used to provide creation options to the NewDatadogAgent function

Jump to

Keyboard shortcuts

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