Documentation ¶
Index ¶
- Constants
- func BuildEnvVarFromSecret(name, key string) *corev1.EnvVarSource
- func BuildEnvVarFromSource(name string, source *corev1.EnvVarSource) *corev1.EnvVar
- func GetAgentLocalServiceSelector(dda metav1.Object) map[string]string
- func GetAgentVersion(dda metav1.Object) string
- func GetAgentVersionFromImage(imageConfig v2alpha1.AgentImageConfig) string
- func GetDefaultLabels(owner metav1.Object, componentKind, componentName, version string) map[string]string
- func GetDefaultMetadata(owner metav1.Object, componentKind, componentName, version string, ...) (map[string]string, map[string]string, *metav1.LabelSelector)
- func GetDefaultSeccompConfigMapName(dda metav1.Object) string
- func GetInstallInfoConfigMapName(dda metav1.Object) string
- func GetVolumeForAuth() corev1.Volume
- func GetVolumeForCertificates() corev1.Volume
- func GetVolumeForCgroups() corev1.Volume
- func GetVolumeForChecksd() corev1.Volume
- func GetVolumeForConfd() corev1.Volume
- func GetVolumeForConfig() corev1.Volume
- func GetVolumeForDogstatsd() corev1.Volume
- func GetVolumeForLogs() corev1.Volume
- func GetVolumeForProc() corev1.Volume
- func GetVolumeForRmCorechecks() corev1.Volume
- func GetVolumeForRuntimeSocket() corev1.Volume
- func GetVolumeForSeccomp() corev1.Volume
- func GetVolumeForSecurity(owner metav1.Object) corev1.Volume
- func GetVolumeForTmp() corev1.Volume
- func GetVolumeInstallInfo(owner metav1.Object) corev1.Volume
- func GetVolumeMountForAuth(readOnly bool) corev1.VolumeMount
- func GetVolumeMountForCertificates() corev1.VolumeMount
- func GetVolumeMountForCgroups() corev1.VolumeMount
- func GetVolumeMountForChecksd() corev1.VolumeMount
- func GetVolumeMountForConfd() corev1.VolumeMount
- func GetVolumeMountForConfig() corev1.VolumeMount
- func GetVolumeMountForDogstatsdSocket(readOnly bool) corev1.VolumeMount
- func GetVolumeMountForInstallInfo() corev1.VolumeMount
- func GetVolumeMountForLogs() corev1.VolumeMount
- func GetVolumeMountForProc() corev1.VolumeMount
- func GetVolumeMountForRmCorechecks() corev1.VolumeMount
- func GetVolumeMountForRuntimeSocket(readOnly bool) corev1.VolumeMount
- func GetVolumeMountForSeccomp() corev1.VolumeMount
- func GetVolumeMountForSecurity() corev1.VolumeMount
- func GetVolumeMountForTmp() corev1.VolumeMount
- func NewDeployment(owner metav1.Object, componentKind, componentName, version string, ...) *appsv1.Deployment
- func ShouldCreateAgentLocalService(versionInfo *version.Info, forceEnableLocalService bool) bool
Constants ¶
const ( DatadogTokenOldResourceName = "datadogtoken" // Kept for backward compatibility with agent <7.37.0 DatadogLeaderElectionOldResourceName = "datadog-leader-election" // Kept for backward compatibility with agent <7.37.0 DatadogCustomMetricsResourceName = "datadog-custom-metrics" DatadogClusterIDResourceName = "datadog-cluster-id" ExtensionAPIServerAuthResourceName = "extension-apiserver-authentication" KubeSystemResourceName = "kube-system" NodeAgentSuffix = "node" ChecksRunnerSuffix = "ccr" ClusterAgentSuffix = "dca" CustomResourceDefinitionsName = "customresourcedefinitions" DefaultAgentInstallType = "k8s_manual" )
Resource names
Variables ¶
This section is empty.
Functions ¶
func BuildEnvVarFromSecret ¶
func BuildEnvVarFromSecret(name, key string) *corev1.EnvVarSource
BuildEnvVarFromSecret return an corev1.EnvVarSource correspond to a secret reference
func BuildEnvVarFromSource ¶
func BuildEnvVarFromSource(name string, source *corev1.EnvVarSource) *corev1.EnvVar
BuildEnvVarFromSource return an *corev1.EnvVar from a Env Var name and *corev1.EnvVarSource
func GetAgentLocalServiceSelector ¶
GetAgentLocalServiceSelector creates the selector to be used for the agent local service
func GetAgentVersion ¶
GetAgentVersion return the Agent version based on the DatadogAgent info
func GetAgentVersionFromImage ¶
func GetAgentVersionFromImage(imageConfig v2alpha1.AgentImageConfig) string
GetAgentVersionFromImage returns the Agent version based on the AgentImageConfig
func GetDefaultLabels ¶
func GetDefaultMetadata ¶
func GetDefaultSeccompConfigMapName ¶
GetDefaultSeccompConfigMapName returns the default seccomp configmap name based on the DatadogAgent name
func GetInstallInfoConfigMapName ¶
GetInstallInfoConfigMapName return the InstallInfo config map name base on the dda name
func GetVolumeForAuth ¶
GetVolumeForAuth return the Volume container authentication information
func GetVolumeForCertificates ¶
GetVolumeForCertificates return the Volume use to store certificates
func GetVolumeForCgroups ¶
GetVolumeForCgroups returns the volume that contains the cgroup directory
func GetVolumeForChecksd ¶
GetVolumeForChecksd return the volume that contains the agent confd config files
func GetVolumeForConfd ¶
GetVolumeForConfd return the volume that contains the agent confd config files
func GetVolumeForConfig ¶
GetVolumeForConfig return the volume that contains the agent config
func GetVolumeForDogstatsd ¶
GetVolumeForDogstatsd returns the volume with the Dogstatsd socket
func GetVolumeForLogs ¶
GetVolumeForLogs return the Volume that should container generated logs
func GetVolumeForProc ¶
GetVolumeForProc returns the volume with /proc
func GetVolumeForRmCorechecks ¶
GetVolumeForRmCorechecks return the volume that overwrites the corecheck directory
func GetVolumeForRuntimeSocket ¶
GetVolumeForRuntimeSocket returns the Volume for the runtime socket
func GetVolumeForSeccomp ¶
GetVolumeForSeccomp returns the volume for seccomp root
func GetVolumeForSecurity ¶
GetVolumeForSecurity returns the Volume for datadog-agent-security
func GetVolumeForTmp ¶
GetVolumeForTmp return the Volume use for /tmp
func GetVolumeInstallInfo ¶
GetVolumeInstallInfo return the Volume that should install-info file
func GetVolumeMountForAuth ¶
func GetVolumeMountForAuth(readOnly bool) corev1.VolumeMount
GetVolumeMountForAuth returns the VolumeMount that contains the authentication information
func GetVolumeMountForCertificates ¶
func GetVolumeMountForCertificates() corev1.VolumeMount
GetVolumeMountForCertificates return the VolumeMount use to store certificates
func GetVolumeMountForCgroups ¶
func GetVolumeMountForCgroups() corev1.VolumeMount
GetVolumeMountForCgroups returns the VolumeMount that contains the cgroups info
func GetVolumeMountForChecksd ¶
func GetVolumeMountForChecksd() corev1.VolumeMount
GetVolumeMountForChecksd return the VolumeMount that contains the agent checksd config files
func GetVolumeMountForConfd ¶
func GetVolumeMountForConfd() corev1.VolumeMount
GetVolumeMountForConfd return the VolumeMount that contains the agent confd config files
func GetVolumeMountForConfig ¶
func GetVolumeMountForConfig() corev1.VolumeMount
GetVolumeMountForConfig return the VolumeMount that contains the agent config
func GetVolumeMountForDogstatsdSocket ¶
func GetVolumeMountForDogstatsdSocket(readOnly bool) corev1.VolumeMount
GetVolumeMountForDogstatsdSocket returns the VolumeMount with the Dogstatsd socket
func GetVolumeMountForInstallInfo ¶
func GetVolumeMountForInstallInfo() corev1.VolumeMount
GetVolumeMountForInstallInfo return the VolumeMount that contains the agent install-info file
func GetVolumeMountForLogs ¶
func GetVolumeMountForLogs() corev1.VolumeMount
GetVolumeMountForLogs return the VolumeMount for the container generated logs
func GetVolumeMountForProc ¶
func GetVolumeMountForProc() corev1.VolumeMount
GetVolumeMountForProc returns the VolumeMount that contains /proc
func GetVolumeMountForRmCorechecks ¶
func GetVolumeMountForRmCorechecks() corev1.VolumeMount
GetVolumeMountForRmCorechecks return the VolumeMount that overwrites the corechecks directory
func GetVolumeMountForRuntimeSocket ¶
func GetVolumeMountForRuntimeSocket(readOnly bool) corev1.VolumeMount
GetVolumeMountForRuntimeSocket returns the VolumeMount with the runtime socket
func GetVolumeMountForSeccomp ¶
func GetVolumeMountForSeccomp() corev1.VolumeMount
GetVolumeMountForSeccomp returns the VolumeMount for seccomp root
func GetVolumeMountForSecurity ¶
func GetVolumeMountForSecurity() corev1.VolumeMount
GetVolumeMountForSecurity returns the VolumeMount for datadog-agent-security
func GetVolumeMountForTmp ¶
func GetVolumeMountForTmp() corev1.VolumeMount
GetVolumeMountForTmp return the VolumeMount for /tmp
func NewDeployment ¶
func NewDeployment(owner metav1.Object, componentKind, componentName, version string, inputSelector *metav1.LabelSelector) *appsv1.Deployment
NewDeployment use to generate the skeleton of a new deployment based on few information
Types ¶
This section is empty.