Documentation
¶
Index ¶
- Constants
- func AgentSupportsADPDogstatsdDelegation(ddaSpec *v2alpha1.DatadogAgentSpec) bool
- func GetFeatureConfigAnnotation(dda metav1.Object, annotation string) (string, bool)
- func HasFeatureEnableAnnotation(dda metav1.Object, annotation string) bool
- func IsDataPlaneDogstatsdEnabled(ddaSpec *v2alpha1.DatadogAgentSpec) bool
- func IsDataPlaneEnabled(dda metav1.Object, ddaSpec *v2alpha1.DatadogAgentSpec) bool
- func ShouldRunProcessChecksInCoreAgent(ddaSpec *v2alpha1.DatadogAgentSpec) bool
Constants ¶
const ( ProcessConfigRunInCoreAgentMinVersion = "7.60.0-0" // ADPDogstatsdDelegationMinVersion is the minimum Agent version that natively disables Core Agent // DogStatsD when data_plane.enabled and data_plane.dogstatsd.enabled are both true. Below this // version the Operator must set DD_USE_DOGSTATSD=false explicitly to avoid a bind conflict. ADPDogstatsdDelegationMinVersion = "7.75.0-0" EnableADPAnnotation = "agent.datadoghq.com/adp-enabled" EnableFineGrainedKubeletAuthz = "agent.datadoghq.com/fine-grained-kubelet-authorization-enabled" EnableHostProfilerAnnotation = "agent.datadoghq.com/host-profiler-enabled" EnableFlightRecorderAnnotation = "agent.datadoghq.com/flightrecorder-enabled" EnablePrivateActionRunnerAnnotation = "agent.datadoghq.com/private-action-runner-enabled" PrivateActionRunnerConfigDataAnnotation = "agent.datadoghq.com/private-action-runner-configdata" EnableClusterAgentPrivateActionRunnerAnnotation = "cluster-agent.datadoghq.com/private-action-runner-enabled" ClusterAgentPrivateActionRunnerConfigDataAnnotation = "cluster-agent.datadoghq.com/private-action-runner-configdata" ClusterAgentPrivateActionRunnerK8sRemediationEnabled = "cluster-agent.datadoghq.com/private-action-runner-k8s-remediation-enabled" )
Variables ¶
This section is empty.
Functions ¶
func AgentSupportsADPDogstatsdDelegation ¶
func AgentSupportsADPDogstatsdDelegation(ddaSpec *v2alpha1.DatadogAgentSpec) bool
AgentSupportsADPDogstatsdDelegation returns true if the agent version is >= 7.75.0, meaning it natively disables Core DogStatsD when data_plane.enabled + data_plane.dogstatsd.enabled are true. For older agents the Operator must set DD_USE_DOGSTATSD=false explicitly.
func GetFeatureConfigAnnotation ¶ added in v1.25.0
func HasFeatureEnableAnnotation ¶ added in v1.25.0
func IsDataPlaneDogstatsdEnabled ¶ added in v1.25.0
func IsDataPlaneDogstatsdEnabled(ddaSpec *v2alpha1.DatadogAgentSpec) bool
IsDataPlaneDogstatsdEnabled returns true if the Data Plane should handle DogStatsD. Defaults to true: when data_plane.enabled=true, ADP handles DogStatsD unless explicitly disabled.
func IsDataPlaneEnabled ¶ added in v1.25.0
func IsDataPlaneEnabled(dda metav1.Object, ddaSpec *v2alpha1.DatadogAgentSpec) bool
IsDataPlaneEnabled returns true if the Data Plane is enabled. CRD configuration takes precedence over the annotation. If the annotation is used, a deprecation warning is logged.
func ShouldRunProcessChecksInCoreAgent ¶ added in v1.21.0
func ShouldRunProcessChecksInCoreAgent(ddaSpec *v2alpha1.DatadogAgentSpec) bool
ShouldRunProcessChecksInCoreAgent determines whether process checks should run in the core agent based on the agent version. Agents >= 7.60.0 support running process checks in the core agent. Note: As of Agent 7.78, process checks always run in the core agent on Linux and the DD_PROCESS_CONFIG_RUN_IN_CORE_AGENT_ENABLED envvar is no longer recognized.
Types ¶
This section is empty.