Documentation ¶
Index ¶
- func BuildAgentLocalService(dda metav1.Object, name string) (string, string, map[string]string, []corev1.ServicePort, ...)
- 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 GetAgentName(dda metav1.Object) string
- func GetAgentSCCName(dda metav1.Object) string
- func GetAgentServiceName(dda metav1.Object) string
- func GetAgentVersion(dda metav1.Object) string
- func GetClusterAgentName(dda metav1.Object) string
- func GetClusterAgentSCCName(dda metav1.Object) string
- func GetClusterAgentServiceName(dda metav1.Object) string
- func GetClusterAgentVersion(dda metav1.Object) string
- func GetClusterChecksRunnerName(dda metav1.Object) string
- 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 NewDaemonset(owner metav1.Object, componentKind, componentName, version string, ...) *appsv1.DaemonSet
- func NewDeployment(owner metav1.Object, componentKind, componentName, version string, ...) *appsv1.Deployment
- func NewExtendedDaemonset(owner metav1.Object, componentKind, componentName, version string, ...) *edsv1alpha1.ExtendedDaemonSet
- func ShouldCreateAgentLocalService(versionInfo *version.Info, forceEnableLocalService bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAgentLocalService ¶
func BuildAgentLocalService(dda metav1.Object, name string) (string, string, map[string]string, []corev1.ServicePort, *corev1.ServiceInternalTrafficPolicyType)
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 ¶
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 GetAgentName ¶
GetAgentName return the Agent name based on the DatadogAgent info
func GetAgentSCCName ¶
GetAgentSCCName returns the Agent SCC name based on the DatadogAgent name
func GetAgentServiceName ¶
GetAgentServiceName return the Agent service name based on the DatadogAgent name
func GetAgentVersion ¶
GetAgentVersion return the Agent version based on the DatadogAgent info
func GetClusterAgentName ¶
GetClusterAgentName return the Cluster-Agent name based on the DatadogAgent name
func GetClusterAgentSCCName ¶
GetClusterAgentSCCName returns the Cluster-Agent SCC 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 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 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
Types ¶
This section is empty.