override

package
v1.0.0-rc.11 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package override provides a set of function to override generic resource such as corev1.PodTemplate and corev1.Container.

Index

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

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.

Jump to

Keyboard shortcuts

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