constants

package
v1.12.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 7 Imported by: 1 module, 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

View Source
const (
	// Liveness probe default config
	DefaultLivenessProbeInitialDelaySeconds int32 = 15
	DefaultLivenessProbePeriodSeconds       int32 = 15
	DefaultLivenessProbeTimeoutSeconds      int32 = 5
	DefaultLivenessProbeSuccessThreshold    int32 = 1
	DefaultLivenessProbeFailureThreshold    int32 = 6
	DefaultLivenessProbeHTTPPath                  = "/live"

	// Readiness probe default config
	DefaultReadinessProbeInitialDelaySeconds int32 = 15
	DefaultReadinessProbePeriodSeconds       int32 = 15
	DefaultReadinessProbeTimeoutSeconds      int32 = 5
	DefaultReadinessProbeSuccessThreshold    int32 = 1
	DefaultReadinessProbeFailureThreshold    int32 = 6
	DefaultReadinessProbeHTTPPath                  = "/ready"

	// Startup probe default config
	DefaultStartupProbeInitialDelaySeconds int32 = 15
	DefaultStartupProbePeriodSeconds       int32 = 15
	DefaultStartupProbeTimeoutSeconds      int32 = 5
	DefaultStartupProbeSuccessThreshold    int32 = 1
	DefaultStartupProbeFailureThreshold    int32 = 6
	DefaultStartupProbeHTTPPath                  = "/startup"

	// Agent Data plane default liveness/readiness probe configs
	DefaultADPLivenessProbeInitialDelaySeconds int32 = 5
	DefaultADPLivenessProbePeriodSeconds       int32 = 5
	DefaultADPLivenessProbeTimeoutSeconds      int32 = 5
	DefaultADPLivenessProbeSuccessThreshold    int32 = 1
	DefaultADPLivenessProbeFailureThreshold    int32 = 12

	DefaultADPReadinessProbeInitialDelaySeconds int32 = 5
	DefaultADPReadinessProbePeriodSeconds       int32 = 5
	DefaultADPReadinessProbeTimeoutSeconds      int32 = 5
	DefaultADPReadinessProbeSuccessThreshold    int32 = 1
	DefaultADPReadinessProbeFailureThreshold    int32 = 12

	// DefaultAgentHealthPort default agent health port
	DefaultAgentHealthPort int32 = 5555

	DefaultADPHealthPort = 5100

	// DefaultApmPort default apm port
	DefaultApmPort = 8126
	// DefaultApmPortName default apm port name
	DefaultApmPortName = "traceport"

	// DefaultAgentResourceSuffix use as suffix for agent resource naming
	DefaultAgentResourceSuffix = "agent"
	// DefaultClusterAgentResourceSuffix use as suffix for cluster-agent resource naming
	DefaultClusterAgentResourceSuffix = "cluster-agent"
	// DefaultClusterChecksRunnerResourceSuffix use as suffix for cluster-checks-runner resource naming
	DefaultClusterChecksRunnerResourceSuffix = "cluster-checks-runner"
)

Variables

This section is empty.

Functions

func GetAgentServiceAccount

func GetAgentServiceAccount(dda *v2alpha1.DatadogAgent) string

GetAgentServiceAccount returns the agent service account name

func GetAgentServiceAccountAnnotations

func GetAgentServiceAccountAnnotations(dda *v2alpha1.DatadogAgent) map[string]string

GetAgentServiceAccountAnnotations returns the annotations for the agent service account.

func GetClusterAgentServiceAccount

func GetClusterAgentServiceAccount(dda *v2alpha1.DatadogAgent) string

GetClusterAgentServiceAccount return the cluster-agent serviceAccountName

func GetClusterAgentServiceAccountAnnotations

func GetClusterAgentServiceAccountAnnotations(dda *v2alpha1.DatadogAgent) map[string]string

GetClusterAgentServiceAccountAnnotations returns the annotations for the cluster-agent service account.

func GetClusterChecksRunnerServiceAccount

func GetClusterChecksRunnerServiceAccount(dda *v2alpha1.DatadogAgent) string

GetClusterChecksRunnerServiceAccount return the cluster-checks-runner service account name

func GetClusterChecksRunnerServiceAccountAnnotations

func GetClusterChecksRunnerServiceAccountAnnotations(dda *v2alpha1.DatadogAgent) map[string]string

GetClusterChecksRunnerServiceAccountAnnotations returns the annotations for the cluster-checks-runner service account.

func GetConfName

func GetConfName(owner metav1.Object, conf *v2alpha1.CustomConfig, defaultName string) string

GetConfName get the name of the Configmap for a CustomConfigSpec

func GetDefaultAgentDataPlaneLivenessProbe

func GetDefaultAgentDataPlaneLivenessProbe() *corev1.Probe

GetDefaultAgentDataPlaneLivenessProbe creates a defaulted liveness probe for Agent Data Plane

func GetDefaultAgentDataPlaneReadinessProbe

func GetDefaultAgentDataPlaneReadinessProbe() *corev1.Probe

GetDefaultAgentDataPlaneReadinessProbe creates a defaulted readiness probe for Agent Data Plane

func GetDefaultLivenessProbe

func GetDefaultLivenessProbe() *corev1.Probe

GetDefaultLivenessProbe creates a defaulted LivenessProbe

func GetDefaultReadinessProbe

func GetDefaultReadinessProbe() *corev1.Probe

GetDefaultReadinessProbe creates a defaulted ReadinessProbe

func GetDefaultStartupProbe

func GetDefaultStartupProbe() *corev1.Probe

GetDefaultStartupProbe creates a defaulted StartupProbe

func GetDefaultTraceAgentProbe

func GetDefaultTraceAgentProbe() *corev1.Probe

GetDefaultTraceAgentProbe creates a defaulted liveness/readiness probe for the Trace Agent

func GetImage

func GetImage(imageSpec *v2alpha1.AgentImageConfig, registry *string) string

GetImage builds the image string based on ImageConfig and the registry configuration.

func GetLocalAgentServiceName

func GetLocalAgentServiceName(dda *v2alpha1.DatadogAgent) string

GetLocalAgentServiceName returns the name used for the local agent service

func IsCCREnabled

func IsCCREnabled(dda *v2alpha1.DatadogAgent) bool

IsCCREnabled returns whether the DDA should use Cluster Checks Runners

func IsClusterChecksEnabled

func IsClusterChecksEnabled(dda *v2alpha1.DatadogAgent) bool

IsClusterChecksEnabled returns whether the DDA should use cluster checks

func IsHostNetworkEnabled

func IsHostNetworkEnabled(dda *v2alpha1.DatadogAgent, component v2alpha1.ComponentName) bool

IsHostNetworkEnabled returns whether the pod should use the host's network namespace

func IsNetworkPolicyEnabled

func IsNetworkPolicyEnabled(dda *v2alpha1.DatadogAgent) (bool, v2alpha1.NetworkPolicyFlavor)

IsNetworkPolicyEnabled returns whether a network policy should be created and which flavor to use

Types

This section is empty.

Jump to

Keyboard shortcuts

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