Documentation ¶
Overview ¶
Package override provides a set of function to override generic resource such as corev1.PodTemplate and corev1.Container.
Index ¶
- func ApplyGlobalSettings(logger logr.Logger, manager feature.PodTemplateManagers, ...) *corev1.PodTemplateSpec
- func Container(containerName commonv1.AgentContainerName, manager feature.PodTemplateManagers, ...)
- func DaemonSet(daemonSet *v1.DaemonSet, override *v2alpha1.DatadogAgentComponentOverride)
- func Dependencies(logger logr.Logger, manager feature.ResourceManagers, ...) (errs []error)
- func Deployment(deployment *v1.Deployment, override *v2alpha1.DatadogAgentComponentOverride)
- func ExtendedDaemonSet(eds *edsv1alpha1.ExtendedDaemonSet, ...)
- func PodTemplateSpec(logger logr.Logger, manager feature.PodTemplateManagers, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyGlobalSettings ¶
func ApplyGlobalSettings(logger logr.Logger, manager feature.PodTemplateManagers, dda *v2alpha1.DatadogAgent, resourcesManager feature.ResourceManagers, componentName v2alpha1.ComponentName) *corev1.PodTemplateSpec
ApplyGlobalSettings use to apply global setting to a PodTemplateSpec
func Container ¶
func Container(containerName commonv1.AgentContainerName, manager feature.PodTemplateManagers, override *v2alpha1.DatadogAgentGenericContainer)
Container use to override a corev1.Container with a 2alpha1.DatadogAgentGenericContainer.
func DaemonSet ¶
func DaemonSet(daemonSet *v1.DaemonSet, override *v2alpha1.DatadogAgentComponentOverride)
DaemonSet overrides a DaemonSet according to the given override options
func Dependencies ¶
func Dependencies(logger logr.Logger, manager feature.ResourceManagers, dda *v2alpha1.DatadogAgent) (errs []error)
Dependencies is used to override any resource/dependency settings with a v2alpha1.DatadogAgentComponentOverride.
func Deployment ¶
func Deployment(deployment *v1.Deployment, override *v2alpha1.DatadogAgentComponentOverride)
Deployment overrides a v1.Deployment according to the given override options
func ExtendedDaemonSet ¶
func ExtendedDaemonSet(eds *edsv1alpha1.ExtendedDaemonSet, override *v2alpha1.DatadogAgentComponentOverride)
ExtendedDaemonSet overrides an ExtendedDaemonSet according to the given override options
func PodTemplateSpec ¶
func PodTemplateSpec(logger logr.Logger, manager feature.PodTemplateManagers, override *v2alpha1.DatadogAgentComponentOverride, componentName v2alpha1.ComponentName, ddaName string)
PodTemplateSpec use to override a corev1.PodTemplateSpec with a 2alpha1.DatadogAgentPodTemplateOverride.
Types ¶
This section is empty.