component

package
v1.0.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAgentLocalService

BuildAgentLocalService creates a local service for the node agent

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

BuildKubernetesNetworkPolicy creates the base node agent kubernetes network policy

func GetAgentName

func GetAgentName(dda metav1.Object) string

GetAgentName return the Agent name based on the DatadogAgent info

func GetAgentSCCName

func GetAgentSCCName(dda metav1.Object) string

GetAgentSCCName returns the Agent SCC name based on the DatadogAgent name

func GetAgentServiceName

func GetAgentServiceName(dda metav1.Object) string

GetAgentServiceName return the Agent service name based on the DatadogAgent name

func GetAgentVersion

func GetAgentVersion(dda metav1.Object) string

GetAgentVersion return the Agent version based on the DatadogAgent info

func GetClusterAgentName

func GetClusterAgentName(dda metav1.Object) string

GetClusterAgentName return the Cluster-Agent name based on the DatadogAgent name

func GetClusterAgentSCCName

func GetClusterAgentSCCName(dda metav1.Object) string

GetClusterAgentSCCName returns the Cluster-Agent SCC name based on the DatadogAgent name

func GetClusterAgentServiceName

func GetClusterAgentServiceName(dda metav1.Object) string

GetClusterAgentServiceName return the Cluster-Agent service name based on the DatadogAgent name

func GetClusterAgentVersion

func GetClusterAgentVersion(dda metav1.Object) string

GetClusterAgentVersion return the Cluster-Agent version based on the DatadogAgent info

func GetClusterChecksRunnerName

func GetClusterChecksRunnerName(dda metav1.Object) string

GetClusterChecksRunnerName return the Cluster-Checks-Runner name based on the DatadogAgent name

func GetDefaultSeccompConfigMapName

func GetDefaultSeccompConfigMapName(dda metav1.Object) string

GetDefaultSeccompConfigMapName returns the default seccomp configmap name based on the DatadogAgent name

func GetInstallInfoConfigMapName

func GetInstallInfoConfigMapName(dda metav1.Object) string

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

func GetVolumeForAuth() corev1.Volume

GetVolumeForAuth return the Volume container authentication information

func GetVolumeForCertificates

func GetVolumeForCertificates() corev1.Volume

GetVolumeForCertificates return the Volume use to store certificates

func GetVolumeForCgroups

func GetVolumeForCgroups() corev1.Volume

GetVolumeForCgroups returns the volume that contains the cgroup directory

func GetVolumeForChecksd

func GetVolumeForChecksd() corev1.Volume

GetVolumeForChecksd return the volume that contains the agent confd config files

func GetVolumeForConfd

func GetVolumeForConfd() corev1.Volume

GetVolumeForConfd return the volume that contains the agent confd config files

func GetVolumeForConfig

func GetVolumeForConfig() corev1.Volume

GetVolumeForConfig return the volume that contains the agent config

func GetVolumeForDogstatsd

func GetVolumeForDogstatsd() corev1.Volume

GetVolumeForDogstatsd returns the volume with the Dogstatsd socket

func GetVolumeForLogs

func GetVolumeForLogs() corev1.Volume

GetVolumeForLogs return the Volume that should container generated logs

func GetVolumeForProc

func GetVolumeForProc() corev1.Volume

GetVolumeForProc returns the volume with /proc

func GetVolumeForRmCorechecks

func GetVolumeForRmCorechecks() corev1.Volume

GetVolumeForRmCorechecks return the volume that overwrites the corecheck directory

func GetVolumeForRuntimeSocket

func GetVolumeForRuntimeSocket() corev1.Volume

GetVolumeForRuntimeSocket returns the Volume for the runtime socket

func GetVolumeForSeccomp

func GetVolumeForSeccomp() corev1.Volume

GetVolumeForSeccomp returns the volume for seccomp root

func GetVolumeForSecurity

func GetVolumeForSecurity(owner metav1.Object) corev1.Volume

GetVolumeForSecurity returns the Volume for datadog-agent-security

func GetVolumeForTmp

func GetVolumeForTmp() corev1.Volume

GetVolumeForTmp return the Volume use for /tmp

func GetVolumeInstallInfo

func GetVolumeInstallInfo(owner metav1.Object) corev1.Volume

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 NewDaemonset

func NewDaemonset(owner metav1.Object, componentKind, componentName, version string, selector *metav1.LabelSelector) *appsv1.DaemonSet

NewDaemonset use to generate the skeleton of a new daemonset based on few information

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

func NewExtendedDaemonset

func NewExtendedDaemonset(owner metav1.Object, componentKind, componentName, version string, selector *metav1.LabelSelector) *edsv1alpha1.ExtendedDaemonSet

NewExtendedDaemonset use to generate the skeleton of a new extended daemonset based on few information

func ShouldCreateAgentLocalService

func ShouldCreateAgentLocalService(versionInfo *version.Info, forceEnableLocalService bool) bool

ShouldCreateAgentLocalService returns whether the node agent local service should be created based on the Kubernetes version

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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