common

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AgentDeploymentNameLabelKey label key use to link a Resource to a DatadogAgent
	AgentDeploymentNameLabelKey = "agent.datadoghq.com/name"
	// AgentDeploymentComponentLabelKey label key use to know with component is it
	AgentDeploymentComponentLabelKey = "agent.datadoghq.com/component"
	// MD5AgentDeploymentProviderLabelKey label key is used to identify which provider is being used
	MD5AgentDeploymentProviderLabelKey = "agent.datadoghq.com/provider"
	// MD5AgentDeploymentAnnotationKey annotation key used on a Resource in order to identify which AgentDeployment have been used to generate it.
	MD5AgentDeploymentAnnotationKey = "agent.datadoghq.com/agentspechash"
	// MD5ChecksumAnnotationKey annotation key is used to identify customConfig configurations
	MD5ChecksumAnnotationKey = "checksum/%s-custom-config"
)
View Source
const (
	SystemProbeAppArmorAnnotationKey   = "container.apparmor.security.beta.kubernetes.io/system-probe"
	SystemProbeAppArmorAnnotationValue = "unconfined"

	AgentAppArmorAnnotationKey   = "container.apparmor.security.beta.kubernetes.io/agent"
	AgentAppArmorAnnotationValue = "unconfined"
)

Annotations

View Source
const (
	ConfdVolumeName   = "confd"
	ConfdVolumePath   = "/conf.d"
	ConfigVolumeName  = "config"
	ConfigVolumePath  = "/etc/datadog-agent"
	ChecksdVolumeName = "checksd"
	ChecksdVolumePath = "/checks.d"

	HostRootVolumeName = "hostroot"
	HostRootHostPath   = "/"
	HostRootMountPath  = "/host/root"

	GroupVolumeName = "group"
	GroupHostPath   = "/etc/group"
	GroupMountPath  = "/etc/group"

	PasswdVolumeName = "passwd"
	PasswdHostPath   = "/etc/passwd"
	PasswdMountPath  = "/etc/passwd"

	ProcdirVolumeName = "procdir"
	ProcdirHostPath   = "/proc"
	ProcdirMountPath  = "/host/proc"

	CgroupsVolumeName = "cgroups"
	CgroupsHostPath   = "/sys/fs/cgroup"
	CgroupsMountPath  = "/host/sys/fs/cgroup"

	SystemProbeOSReleaseDirVolumeName = "host-osrelease"
	SystemProbeOSReleaseDirVolumePath = "/etc/os-release"
	SystemProbeOSReleaseDirMountPath  = "/host/etc/os-release"

	SystemProbeSocketVolumeName = "sysprobe-socket-dir"
	SystemProbeSocketVolumePath = "/var/run/sysprobe"

	DebugfsVolumeName = "debugfs"
	// same path on host and container
	DebugfsPath = "/sys/kernel/debug"

	ModulesVolumeName = "modules"
	// same path on host and container
	ModulesVolumePath = "/lib/modules"

	SrcVolumeName = "src"
	// same path on host and container
	SrcVolumePath = "/usr/src"

	AgentCustomConfigVolumePath = "/etc/datadog-agent/datadog.yaml"
	SystemProbeConfigVolumePath = "/etc/datadog-agent/system-probe.yaml"
	OtelCustomConfigVolumePath  = "/etc/datadog-agent/otel-config.yaml"

	LogDatadogVolumeName      = "logdatadog"
	LogDatadogVolumePath      = "/var/log/datadog"
	DefaultLogTempStoragePath = "/var/lib/datadog-agent/logs"
	TmpVolumeName             = "tmp"
	TmpVolumePath             = "/tmp"
	CertificatesVolumeName    = "certificates"
	CertificatesVolumePath    = "/etc/datadog-agent/certificates"
	AuthVolumeName            = "datadog-agent-auth"
	AuthVolumePath            = "/etc/datadog-agent/auth"
	InstallInfoVolumeName     = "installinfo"
	InstallInfoVolumeSubPath  = "install_info"
	InstallInfoVolumePath     = "/etc/datadog-agent/install_info"
	InstallInfoVolumeReadOnly = true

	DogstatsdHostPortName      = "dogstatsdport"
	DogstatsdHostPortHostPort  = 8125
	DogstatsdSocketVolumeName  = "dsdsocket"
	DogstatsdAPMSocketHostPath = "/var/run/datadog"
	DogstatsdSocketLocalPath   = "/var/run/datadog"
	DogstatsdSocketName        = "dsd.socket"

	HostCriSocketPathPrefix = "/host"
	CriSocketVolumeName     = "runtimesocketdir"
	RuntimeDirVolumePath    = "/var/run"

	KubeletAgentCAPath  = "/var/run/host-kubelet-ca.crt"
	KubeletCAVolumeName = "kubelet-ca"

	APMSocketName = "apm.socket"

	ExternalMetricsAPIServiceName = "v1beta1.external.metrics.k8s.io"

	SeccompSecurityVolumeName                   = "datadog-agent-security"
	SeccompSecurityVolumePath                   = "/etc/config"
	SeccompRootVolumeName                       = "seccomp-root"
	SeccompRootVolumePath                       = "/host/var/lib/kubelet/seccomp"
	SeccompRootPath                             = "/var/lib/kubelet/seccomp"
	SystemProbeSeccompKey                       = "system-probe-seccomp.json"
	SystemProbeAgentSecurityConfigMapSuffixName = "system-probe-seccomp"
	SystemProbeSeccompProfileName               = "system-probe"

	AppArmorAnnotationKey = "container.apparmor.security.beta.kubernetes.io"

	AgentCustomConfigVolumeName        = "custom-datadog-yaml"
	ClusterAgentCustomConfigVolumeName = "custom-cluster-agent-yaml"

	FIPSProxyCustomConfigVolumeName = "fips-proxy-cfg"
	FIPSProxyCustomConfigFileName   = "datadog-fips-proxy.cfg"
	FIPSProxyCustomConfigMapName    = "%s-fips-config"
	FIPSProxyCustomConfigMountPath  = "/etc/datadog-fips-proxy/datadog-fips-proxy.cfg"
)

Datadog volume names and mount paths

View Source
const (
	// FieldPathSpecNodeName used as FieldPath for selecting the NodeName
	FieldPathSpecNodeName = "spec.nodeName"

	// FieldPathStatusHostIP used as FieldPath to retrieve the host ip
	FieldPathStatusHostIP = "status.hostIP"

	// FieldPathStatusPodIP used as FieldPath to retrieve the pod ip
	FieldPathStatusPodIP = "status.podIP"

	// FieldPathMetaName used as FieldPath to retrieve the pod name
	FieldPathMetaName = "metadata.name"
)
View Source
const (
	DatadogHost                                          = "DATADOG_HOST"
	DDAdmissionControllerAgentSidecarEnabled             = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_ENABLED"
	DDAdmissionControllerAgentSidecarClusterAgentEnabled = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_CLUSTER_AGENT_ENABLED"
	DDAdmissionControllerAgentSidecarProvider            = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_PROVIDER"
	DDAdmissionControllerAgentSidecarRegistry            = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_CONTAINER_REGISTRY"
	DDAdmissionControllerAgentSidecarImageName           = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_NAME"
	DDAdmissionControllerAgentSidecarImageTag            = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_TAG"
	DDAdmissionControllerAgentSidecarSelectors           = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_SELECTORS"
	DDAdmissionControllerAgentSidecarProfiles            = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_PROFILES"
	DDAdmissionControllerEnabled                         = "DD_ADMISSION_CONTROLLER_ENABLED"
	DDAdmissionControllerValidationEnabled               = "DD_ADMISSION_CONTROLLER_VALIDATION_ENABLED"
	DDAdmissionControllerMutationEnabled                 = "DD_ADMISSION_CONTROLLER_MUTATION_ENABLED"
	DDAdmissionControllerInjectConfig                    = "DD_ADMISSION_CONTROLLER_INJECT_CONFIG_ENABLED"
	DDAdmissionControllerInjectConfigMode                = "DD_ADMISSION_CONTROLLER_INJECT_CONFIG_MODE"
	DDAdmissionControllerInjectTags                      = "DD_ADMISSION_CONTROLLER_INJECT_TAGS_ENABLED"
	DDAdmissionControllerLocalServiceName                = "DD_ADMISSION_CONTROLLER_INJECT_CONFIG_LOCAL_SERVICE_NAME"
	DDAdmissionControllerMutateUnlabelled                = "DD_ADMISSION_CONTROLLER_MUTATE_UNLABELLED"
	DDAdmissionControllerServiceName                     = "DD_ADMISSION_CONTROLLER_SERVICE_NAME"
	DDAdmissionControllerFailurePolicy                   = "DD_ADMISSION_CONTROLLER_FAILURE_POLICY"
	DDAdmissionControllerWebhookName                     = "DD_ADMISSION_CONTROLLER_WEBHOOK_NAME"
	DDAdmissionControllerRegistryName                    = "DD_ADMISSION_CONTROLLER_CONTAINER_REGISTRY"
	DDAdmissionControllerCWSInstrumentationEnabled       = "DD_ADMISSION_CONTROLLER_CWS_INSTRUMENTATION_ENABLED"
	DDAdmissionControllerCWSInstrumentationMode          = "DD_ADMISSION_CONTROLLER_CWS_INSTRUMENTATION_MODE"
	DDAdmissionControllerAppsecEnabled                   = "DD_ADMISSION_CONTROLLER_AUTO_INSTRUMENTATION_APPSEC_ENABLED"
	DDAdmissionControllerAppsecSCAEnabled                = "DD_ADMISSION_CONTROLLER_AUTO_INSTRUMENTATION_APPSEC_SCA_ENABLED"
	DDAdmissionControllerIASTEnabled                     = "DD_ADMISSION_CONTROLLER_AUTO_INSTRUMENTATION_IAST_ENABLED"
	DDAPIKey                                             = "DD_API_KEY"
	DDAPMEnabled                                         = "DD_APM_ENABLED"
	DDAPMInstrumentationInstallTime                      = "DD_INSTRUMENTATION_INSTALL_TIME"
	DDAPMInstrumentationInstallId                        = "DD_INSTRUMENTATION_INSTALL_ID"
	DDAPMInstrumentationInstallType                      = "DD_INSTRUMENTATION_INSTALL_TYPE"
	DDAPMNonLocalTraffic                                 = "DD_APM_NON_LOCAL_TRAFFIC"
	DDAPMReceiverPort                                    = "DD_APM_RECEIVER_PORT"
	DDAPMReceiverSocket                                  = "DD_APM_RECEIVER_SOCKET"
	DDAPMInstrumentationEnabled                          = "DD_APM_INSTRUMENTATION_ENABLED"
	DDAPMInstrumentationEnabledNamespaces                = "DD_APM_INSTRUMENTATION_ENABLED_NAMESPACES"
	DDAPMInstrumentationDisabledNamespaces               = "DD_APM_INSTRUMENTATION_DISABLED_NAMESPACES"
	DDAPMInstrumentationLibVersions                      = "DD_APM_INSTRUMENTATION_LIB_VERSIONS"
	DDAppKey                                             = "DD_APP_KEY"
	DDAuthTokenFilePath                                  = "DD_AUTH_TOKEN_FILE_PATH"
	DDChecksTagCardinality                               = "DD_CHECKS_TAG_CARDINALITY"
	DDClcRunnerEnabled                                   = "DD_CLC_RUNNER_ENABLED"
	DDClcRunnerHost                                      = "DD_CLC_RUNNER_HOST"
	DDClcRunnerID                                        = "DD_CLC_RUNNER_ID"
	DDClusterAgentAuthToken                              = "DD_CLUSTER_AGENT_AUTH_TOKEN"
	DDClusterAgentEnabled                                = "DD_CLUSTER_AGENT_ENABLED"
	DDClusterAgentKubeServiceName                        = "DD_CLUSTER_AGENT_KUBERNETES_SERVICE_NAME"
	DDClusterAgentServiceAccountName                     = "DD_CLUSTER_AGENT_SERVICE_ACCOUNT_NAME"
	DDClusterAgentTokenName                              = "DD_CLUSTER_AGENT_TOKEN_NAME"
	DDClusterChecksEnabled                               = "DD_CLUSTER_CHECKS_ENABLED"
	DDClusterName                                        = "DD_CLUSTER_NAME"
	DDCollectKubernetesEvents                            = "DD_COLLECT_KUBERNETES_EVENTS"
	DDComplianceConfigCheckInterval                      = "DD_COMPLIANCE_CONFIG_CHECK_INTERVAL"
	DDComplianceConfigDir                                = "DD_COMPLIANCE_CONFIG_DIR"
	DDComplianceConfigEnabled                            = "DD_COMPLIANCE_CONFIG_ENABLED"
	DDComplianceHostBenchmarksEnabled                    = "DD_COMPLIANCE_HOST_BENCHMARKS_ENABLED"
	DDContainerCollectionEnabled                         = "DD_PROCESS_CONFIG_CONTAINER_COLLECTION_ENABLED"
	DDCriSocketPath                                      = "DD_CRI_SOCKET_PATH"
	DDddURL                                              = "DD_DD_URL"
	DDURL                                                = "DD_URL"
	DDDogstatsdEnabled                                   = "DD_USE_DOGSTATSD"
	DDDogstatsdMapperProfiles                            = "DD_DOGSTATSD_MAPPER_PROFILES"
	DDDogstatsdNonLocalTraffic                           = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC"
	DDDogstatsdOriginDetection                           = "DD_DOGSTATSD_ORIGIN_DETECTION"
	DDDogstatsdOriginDetectionClient                     = "DD_DOGSTATSD_ORIGIN_DETECTION_CLIENT"
	DDDogstatsdTagCardinality                            = "DD_DOGSTATSD_TAG_CARDINALITY"
	DDDogstatsdPort                                      = "DD_DOGSTATSD_PORT"
	DDDogstatsdSocket                                    = "DD_DOGSTATSD_SOCKET"
	DDEnableMetadataCollection                           = "DD_ENABLE_METADATA_COLLECTION"
	DDEnableOOMKillEnvVar                                = "DD_SYSTEM_PROBE_CONFIG_ENABLE_OOM_KILL"
	DDEnableTCPQueueLengthEnvVar                         = "DD_SYSTEM_PROBE_CONFIG_ENABLE_TCP_QUEUE_LENGTH"
	DDEnableEBPFCheckEnvVar                              = "DD_EBPF_CHECK_ENABLED"
	DDExternalMetricsProviderAPIKey                      = "DD_EXTERNAL_METRICS_PROVIDER_API_KEY"
	DDExternalMetricsProviderAppKey                      = "DD_EXTERNAL_METRICS_PROVIDER_APP_KEY"
	DDExternalMetricsProviderEndpoint                    = "DD_EXTERNAL_METRICS_PROVIDER_ENDPOINT"
	DDExternalMetricsProviderEnabled                     = "DD_EXTERNAL_METRICS_PROVIDER_ENABLED"
	DDExternalMetricsProviderPort                        = "DD_EXTERNAL_METRICS_PROVIDER_PORT"
	DDExternalMetricsProviderUseDatadogMetric            = "DD_EXTERNAL_METRICS_PROVIDER_USE_DATADOGMETRIC_CRD"
	DDExternalMetricsProviderWPAController               = "DD_EXTERNAL_METRICS_PROVIDER_WPA_CONTROLLER"
	DDAutoscalingWorkloadEnabled                         = "DD_AUTOSCALING_WORKLOAD_ENABLED"
	DDExtraConfigProviders                               = "DD_EXTRA_CONFIG_PROVIDERS"
	DDExtraListeners                                     = "DD_EXTRA_LISTENERS"
	DDFIPSEnabled                                        = "DD_FIPS_ENABLED"
	DDFIPSPortRangeStart                                 = "DD_FIPS_PORT_RANGE_START"
	DDFIPSUseHTTPS                                       = "DD_FIPS_HTTPS"
	DDFIPSLocalAddress                                   = "DD_FIPS_LOCAL_ADDRESS"
	DDHealthPort                                         = "DD_HEALTH_PORT"
	DDHostname                                           = "DD_HOSTNAME"
	DDHostRootEnvVar                                     = "HOST_ROOT"
	DDIgnoreAutoConf                                     = "DD_IGNORE_AUTOCONF"
	DDKubeletCAPath                                      = "DD_KUBELET_CLIENT_CA"
	DDKubeletHost                                        = "DD_KUBERNETES_KUBELET_HOST"
	DDKubeletTLSVerify                                   = "DD_KUBELET_TLS_VERIFY"
	DDKubeResourcesNamespace                             = "DD_KUBE_RESOURCES_NAMESPACE"
	DDKubeStateMetricsCoreConfigMap                      = "DD_KUBE_STATE_METRICS_CORE_CONFIGMAP_NAME"
	DDKubeStateMetricsCoreEnabled                        = "DD_KUBE_STATE_METRICS_CORE_ENABLED"
	DDLanguageDetectionEnabled                           = "DD_LANGUAGE_DETECTION_ENABLED"
	DDLeaderElection                                     = "DD_LEADER_ELECTION"
	DDLeaderLeaseName                                    = "DD_LEADER_LEASE_NAME"
	DDLogLevel                                           = "DD_LOG_LEVEL"
	DDLogsConfigContainerCollectAll                      = "DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL"
	DDLogsConfigOpenFilesLimit                           = "DD_LOGS_CONFIG_OPEN_FILES_LIMIT"
	DDLogsContainerCollectUsingFiles                     = "DD_LOGS_CONFIG_K8S_CONTAINER_USE_FILE"
	DDLogsEnabled                                        = "DD_LOGS_ENABLED"
	DDNamespaceLabelsAsTags                              = "DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS"
	DDNamespaceAnnotationsAsTags                         = "DD_KUBERNETES_NAMESPACE_ANNOTATIONS_AS_TAGS"
	DDNodeLabelsAsTags                                   = "DD_KUBERNETES_NODE_LABELS_AS_TAGS"
	DDKubernetesResourcesLabelsAsTags                    = "DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS"
	DDKubernetesResourcesAnnotationsAsTags               = "DD_KUBERNETES_RESOURCES_ANNOTATIONS_AS_TAGS"
	DDOrchestratorExplorerEnabled                        = "DD_ORCHESTRATOR_EXPLORER_ENABLED"
	DDOrchestratorExplorerExtraTags                      = "DD_ORCHESTRATOR_EXPLORER_EXTRA_TAGS"
	DDOrchestratorExplorerDDUrl                          = "DD_ORCHESTRATOR_EXPLORER_ORCHESTRATOR_DD_URL"
	DDOrchestratorExplorerAdditionalEndpoints            = "DD_ORCHESTRATOR_ADDITIONAL_ENDPOINTS"
	DDOrchestratorExplorerContainerScrubbingEnabled      = "DD_ORCHESTRATOR_EXPLORER_CONTAINER_SCRUBBING_ENABLED"
	DDOriginDetectionUnified                             = "DD_ORIGIN_DETECTION_UNIFIED"
	DDPodAnnotationsAsTags                               = "DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS"
	DDPodLabelsAsTags                                    = "DD_KUBERNETES_POD_LABELS_AS_TAGS"
	DDPodName                                            = "DD_POD_NAME"
	DDPPMReceiverSocket                                  = "DD_APM_RECEIVER_SOCKET"
	DDProcessCollectionEnabled                           = "DD_PROCESS_CONFIG_PROCESS_COLLECTION_ENABLED"
	DDProcessConfigScrubArgs                             = "DD_PROCESS_CONFIG_SCRUB_ARGS"
	DDProcessConfigStripArgs                             = "DD_PROCESS_CONFIG_STRIP_PROC_ARGUMENTS"
	DDProcessDiscoveryEnabled                            = "DD_PROCESS_CONFIG_PROCESS_DISCOVERY_ENABLED"
	DDProcessConfigRunInCoreAgent                        = "DD_PROCESS_CONFIG_RUN_IN_CORE_AGENT_ENABLED"
	DDPrometheusScrapeChecks                             = "DD_PROMETHEUS_SCRAPE_CHECKS"
	DDPrometheusScrapeEnabled                            = "DD_PROMETHEUS_SCRAPE_ENABLED"
	DDPrometheusScrapeServiceEndpoints                   = "DD_PROMETHEUS_SCRAPE_SERVICE_ENDPOINTS"
	DDPrometheusScrapeVersion                            = "DD_PROMETHEUS_SCRAPE_VERSION"
	DDRemoteConfigurationEnabled                         = "DD_REMOTE_CONFIGURATION_ENABLED"
	DDRuntimeSecurityConfigEnabled                       = "DD_RUNTIME_SECURITY_CONFIG_ENABLED"
	DDRuntimeSecurityConfigPoliciesDir                   = "DD_RUNTIME_SECURITY_CONFIG_POLICIES_DIR"
	DDRuntimeSecurityConfigRemoteTaggerEnabled           = "DD_RUNTIME_SECURITY_CONFIG_REMOTE_TAGGER"
	DDRuntimeSecurityConfigSocket                        = "DD_RUNTIME_SECURITY_CONFIG_SOCKET"
	DDRuntimeSecurityConfigSyscallMonitorEnabled         = "DD_RUNTIME_SECURITY_CONFIG_SYSCALL_MONITOR_ENABLED"
	DDRuntimeSecurityConfigNetworkEnabled                = "DD_RUNTIME_SECURITY_CONFIG_NETWORK_ENABLED"
	DDRuntimeSecurityConfigActivityDumpEnabled           = "DD_RUNTIME_SECURITY_CONFIG_ACTIVITY_DUMP_ENABLED"
	DDRuntimeSecurityConfigRemoteConfigurationEnabled    = "DD_RUNTIME_SECURITY_CONFIG_REMOTE_CONFIGURATION_ENABLED"
	DDContainerImageEnabled                              = "DD_CONTAINER_IMAGE_ENABLED"
	DDSBOMEnabled                                        = "DD_SBOM_ENABLED"
	DDSBOMContainerImageEnabled                          = "DD_SBOM_CONTAINER_IMAGE_ENABLED"
	DDSBOMContainerImageAnalyzers                        = "DD_SBOM_CONTAINER_IMAGE_ANALYZERS"
	DDSBOMContainerUseMount                              = "DD_SBOM_CONTAINER_IMAGE_USE_MOUNT"
	DDSBOMContainerOverlayFSDirectScan                   = "DD_SBOM_CONTAINER_IMAGE_OVERLAYFS_DIRECT_SCAN"
	DDSBOMHostEnabled                                    = "DD_SBOM_HOST_ENABLED"
	DDSBOMHostAnalyzers                                  = "DD_SBOM_HOST_ANALYZERS"
	DDSecretBackendCommand                               = "DD_SECRET_BACKEND_COMMAND"
	DDSecretBackendArguments                             = "DD_SECRET_BACKEND_ARGUMENTS"
	DDSecretBackendTimeout                               = "DD_SECRET_BACKEND_TIMEOUT"
	DDServiceDiscoveryEnabled                            = "DD_DISCOVERY_ENABLED"
	DDSite                                               = "DD_SITE"
	DDSystemProbeAgentEnabled                            = "DD_SYSTEM_PROBE_ENABLED"
	DDSystemProbeBPFDebugEnabled                         = DDSystemProbeEnvPrefix + "BPF_DEBUG"
	DDSystemProbeCollectDNSStatsEnabled                  = "DD_COLLECT_DNS_STATS"
	DDSystemProbeConntrackEnabled                        = DDSystemProbeEnvPrefix + "ENABLE_CONNTRACK"
	DDSystemProbeDebugPort                               = DDSystemProbeEnvPrefix + "DEBUG_PORT"
	DDSystemProbeEnabled                                 = "DD_SYSTEM_PROBE_ENABLED"
	DDSystemProbeEnvPrefix                               = "DD_SYSTEM_PROBE_CONFIG_"
	DDSystemProbeExternal                                = "DD_SYSTEM_PROBE_EXTERNAL"
	DDSystemProbeNPMEnabled                              = "DD_SYSTEM_PROBE_NETWORK_ENABLED"
	DDSystemProbeServiceMonitoringEnabled                = "DD_SYSTEM_PROBE_SERVICE_MONITORING_ENABLED"
	DDSystemProbeSocket                                  = "DD_SYSPROBE_SOCKET"
	DDSystemProbeOOMKillEnabled                          = DDSystemProbeEnvPrefix + "ENABLE_OOM_KILL"
	DDSystemProbeTCPQueueLengthEnabled                   = DDSystemProbeEnvPrefix + "ENABLE_TCP_QUEUE_LENGTH"
	DDTags                                               = "DD_TAGS"
	DockerHost                                           = "DOCKER_HOST"

	DDOTLPgRPCEndpoint = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT"
	DDOTLPHTTPEndpoint = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT"

	// KubernetesEnvvarName Env var used by the Datadog Agent container entrypoint
	// to add kubelet config provider and listener
	KubernetesEnvVar = "KUBERNETES"

	ClusterChecksConfigProvider = "clusterchecks"

	EnvVarTrueValue  = "true"
	EnvVarFalseValue = "false"

	// InstallInfoToolVersion is used by the Operator to override the tool
	// version value in the Agent's install info
	InstallInfoToolVersion = "DD_TOOL_VERSION"
)

Datadog env var names

View Source
const (
	CreateStrategyEnabled = "DD_DAP_CREATE_STRATEGY_ENABLED"
)

DatadogAgentProfile env var names

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentContainerName added in v1.10.0

type AgentContainerName string

AgentContainerName is the name of a container inside an Agent component

const (
	// InitVolumeContainerName is the name of the Init Volume init container
	InitVolumeContainerName AgentContainerName = "init-volume"
	// InitConfigContainerName is the name of the Init config Volume init container
	InitConfigContainerName AgentContainerName = "init-config"
	// SeccompSetupContainerName is the name of the Seccomp Setup init container
	SeccompSetupContainerName AgentContainerName = "seccomp-setup"

	// UnprivilegedSingleAgentContainerName is the name of a container which may run
	// any combination of Core, Trace and Process Agent processes in a single container.
	UnprivilegedSingleAgentContainerName AgentContainerName = "unprivileged-single-agent"
	// CoreAgentContainerName is the name of the Core Agent container
	CoreAgentContainerName AgentContainerName = "agent"
	// TraceAgentContainerName is the name of the Trace Agent container
	TraceAgentContainerName AgentContainerName = "trace-agent"
	// ProcessAgentContainerName is the name of the Process Agent container
	ProcessAgentContainerName AgentContainerName = "process-agent"
	// SecurityAgentContainerName is the name of the Security Agent container
	SecurityAgentContainerName AgentContainerName = "security-agent"
	// SystemProbeContainerName is the name of the System Probe container
	SystemProbeContainerName AgentContainerName = "system-probe"
	// OtelAgent is the name of the OTel container
	OtelAgent AgentContainerName = "otel-agent"
	// AgentDataPlaneContainerName is the name of the Agent Data Plane container
	AgentDataPlaneContainerName AgentContainerName = "agent-data-plane"
	// AllContainers is used internally to reference all containers in the pod
	AllContainers AgentContainerName = "all"
	// ClusterAgentContainerName is the name of the Cluster Agent container
	ClusterAgentContainerName AgentContainerName = "cluster-agent"
	// ClusterChecksRunnersContainerName is the name of the Agent container in Cluster Checks Runners
	ClusterChecksRunnersContainerName AgentContainerName = "agent"

	// FIPSProxyContainerName is the name of the FIPS Proxy container
	FIPSProxyContainerName AgentContainerName = "fips-proxy"
)

type RollingUpdate added in v1.10.0

type RollingUpdate struct {
	// The maximum number of pods that can be unavailable during the update.
	// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
	// Refer to the Kubernetes API documentation for additional details..
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`

	// MaxSurge behaves differently based on the Kubernetes resource. Refer to the
	// Kubernetes API documentation for additional details.
	MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty"`
}

RollingUpdate describes how to replace existing pods with new ones. +k8s:openapi-gen=true +kubebuilder:object:generate=true

func (*RollingUpdate) DeepCopy added in v1.10.0

func (in *RollingUpdate) DeepCopy() *RollingUpdate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdate.

func (*RollingUpdate) DeepCopyInto added in v1.10.0

func (in *RollingUpdate) DeepCopyInto(out *RollingUpdate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UpdateStrategy added in v1.10.0

type UpdateStrategy struct {
	// Type can be "RollingUpdate" or "OnDelete" for DaemonSets and "RollingUpdate"
	// or "Recreate" for Deployments
	Type string `json:"type,omitempty"`
	// Configure the rolling update strategy of the Deployment or DaemonSet.
	RollingUpdate *RollingUpdate `json:"rollingUpdate,omitempty"`
}

The deployment strategy to use to replace existing pods with new ones. +k8s:openapi-gen=true +kubebuilder:object:generate=true

func (*UpdateStrategy) DeepCopy added in v1.10.0

func (in *UpdateStrategy) DeepCopy() *UpdateStrategy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateStrategy.

func (*UpdateStrategy) DeepCopyInto added in v1.10.0

func (in *UpdateStrategy) DeepCopyInto(out *UpdateStrategy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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