Documentation ¶
Index ¶
- func BuildCiliumPolicy(dda metav1.Object, site string, ddURL string, hostNetwork bool, ...) (string, string, []cilium.NetworkPolicySpec)
- func BuildEnvVarFromSecret(name, key string) *corev1.EnvVarSource
- func BuildEnvVarFromSource(name string, source *corev1.EnvVarSource) *corev1.EnvVar
- func BuildKubernetesNetworkPolicy(dda metav1.Object, componentName v2alpha1.ComponentName) (string, string, metav1.LabelSelector, []netv1.PolicyType, ...)
- func GetAgentLocalServiceSelector(dda metav1.Object) map[string]string
- func GetAgentName(dda metav1.Object) string
- func GetAgentVersion(dda metav1.Object) string
- func GetAgentVersionFromImage(imageConfig commonv1.AgentImageConfig) string
- func GetClusterAgentName(dda metav1.Object) string
- func GetClusterAgentServiceName(dda metav1.Object) string
- func GetClusterAgentVersion(dda metav1.Object) string
- func GetClusterChecksRunnerName(dda metav1.Object) 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 GetNetworkPolicyMetadata(dda metav1.Object, componentName v2alpha1.ComponentName) (policyName string, podSelector metav1.LabelSelector)
- 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCiliumPolicy ¶
func BuildCiliumPolicy(dda metav1.Object, site string, ddURL string, hostNetwork bool, dnsSelectorEndpoints []metav1.LabelSelector, componentName v2alpha1.ComponentName) (string, string, []cilium.NetworkPolicySpec)
BuildCiliumPolicy creates the base node agent, DCA, or CCR cilium network policy
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 BuildKubernetesNetworkPolicy ¶
func BuildKubernetesNetworkPolicy(dda metav1.Object, componentName v2alpha1.ComponentName) (string, string, metav1.LabelSelector, []netv1.PolicyType, []netv1.NetworkPolicyIngressRule, []netv1.NetworkPolicyEgressRule)
BuildKubernetesNetworkPolicy creates the base node agent kubernetes network policy
func GetAgentLocalServiceSelector ¶ added in v1.2.0
GetAgentLocalServiceSelector creates the selector to be used for the agent local service
func GetAgentName ¶
GetAgentName return the Agent name based on the DatadogAgent info
func GetAgentVersion ¶
GetAgentVersion return the Agent version based on the DatadogAgent info
func GetAgentVersionFromImage ¶ added in v1.1.0
func GetAgentVersionFromImage(imageConfig commonv1.AgentImageConfig) string
GetAgentVersionFromImage returns the Agent version based on the AgentImageConfig
func GetClusterAgentName ¶
GetClusterAgentName return the Cluster-Agent name based on the DatadogAgent name
func GetClusterAgentServiceName ¶
GetClusterAgentServiceName return the Cluster-Agent service name based on the DatadogAgent name
func GetClusterAgentVersion ¶
GetClusterAgentVersion return the Cluster-Agent version based on the DatadogAgent info
func GetClusterChecksRunnerName ¶
GetClusterChecksRunnerName return the Cluster-Checks-Runner name based on the DatadogAgent name
func GetDefaultLabels ¶ added in v1.1.0
func GetDefaultMetadata ¶ added in v1.1.0
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 GetNetworkPolicyMetadata ¶
func GetNetworkPolicyMetadata(dda metav1.Object, componentName v2alpha1.ComponentName) (policyName string, podSelector metav1.LabelSelector)
GetNetworkPolicyMetadata generates a label selector based on component
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.