Documentation
¶
Index ¶
- func CheckOwnerReference(owner, object metav1.Object) bool
- func GetAgentInstanceLabelValue(dda, profile metav1.Object) string
- func SetOwnerReference(owner, object metav1.Object, scheme *runtime.Scheme) error
- type BuilderOptions
- type EnvVarBuilder
- type Reconciler
- type ReconcilerOptions
- type VolumeBuilder
- type VolumeMountBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOwnerReference ¶
CheckOwnerReference return true if owner is the owner of the object
func GetAgentInstanceLabelValue ¶ added in v1.17.0
GetAgentInstanceLabelValue returns the instance name for the agent The current and default is DDA name + suffix (e.g. <dda-name>-agent) This is used when profiles are disabled or for the default profile If profiles are enabled, use the profile name (e.g. <profile-name>-agent) for profile DSs
Types ¶
type BuilderOptions ¶
type BuilderOptions struct {
AllowOverride bool
}
BuilderOptions corresponds to Builders options.
func DefaultBuilderOptions ¶
func DefaultBuilderOptions() BuilderOptions
DefaultBuilderOptions returns a default BuilderOptions instance.
type EnvVarBuilder ¶
type EnvVarBuilder struct {
// contains filtered or unexported fields
}
EnvVarBuilder used to generate a list of EnvVar.
func NewEnvVarsBuilder ¶
func NewEnvVarsBuilder(envVars []corev1.EnvVar, opts *BuilderOptions) *EnvVarBuilder
NewEnvVarsBuilder returns a new EnvVarsBuilder instance.
func (*EnvVarBuilder) Add ¶
func (b *EnvVarBuilder) Add(iEnvVar *corev1.EnvVar) *EnvVarBuilder
Add used to add an EnvVar to the EnvVarBuilder.
func (*EnvVarBuilder) Build ¶
func (b *EnvVarBuilder) Build() []corev1.EnvVar
Build return the generated EnvVar list.
func (*EnvVarBuilder) Remove ¶
func (b *EnvVarBuilder) Remove(volumeName string) *EnvVarBuilder
Remove used to remove an EnvVar to the EnvVarBuilder.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler is the internal reconciler for Datadog Agent
func NewReconciler ¶
func NewReconciler(options ReconcilerOptions, client client.Client, platformInfo kubernetes.PlatformInfo, scheme *runtime.Scheme, log logr.Logger, recorder record.EventRecorder, metricForwardersMgr datadog.MetricsForwardersManager, ) (*Reconciler, error)
NewReconciler returns a reconciler for DatadogAgent
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, dda *v2alpha1.DatadogAgent) (reconcile.Result, error)
Reconcile is similar to reconciler.Reconcile interface, but taking a context
type ReconcilerOptions ¶
type ReconcilerOptions struct { ExtendedDaemonsetOptions componentagent.ExtendedDaemonsetOptions SupportCilium bool OperatorMetricsEnabled bool IntrospectionEnabled bool DatadogAgentProfileEnabled bool DatadogAgentInternalEnabled bool }
ReconcilerOptions provides options read from command line
type VolumeBuilder ¶
type VolumeBuilder struct {
// contains filtered or unexported fields
}
VolumeBuilder used to generate a list of Volume.
func NewVolumeBuilder ¶
func NewVolumeBuilder(volumes []corev1.Volume, opts *BuilderOptions) *VolumeBuilder
NewVolumeBuilder returns a new VolumeBuilder instance.
func (*VolumeBuilder) Add ¶
func (b *VolumeBuilder) Add(iVolume *corev1.Volume) *VolumeBuilder
Add used to add an Volume to the VolumeBuilder.
func (*VolumeBuilder) Build ¶
func (b *VolumeBuilder) Build() []corev1.Volume
Build used to generate a list of Volume.
func (*VolumeBuilder) Remove ¶
func (b *VolumeBuilder) Remove(volumeName string) *VolumeBuilder
Remove used to remove an Volume from the VolumeBuilder.
type VolumeMountBuilder ¶
type VolumeMountBuilder struct {
// contains filtered or unexported fields
}
VolumeMountBuilder used to generate a list of VolumeMount.
func NewVolumeMountBuilder ¶
func NewVolumeMountBuilder(volumeMounts []corev1.VolumeMount, opts *BuilderOptions) *VolumeMountBuilder
NewVolumeMountBuilder returns a new VolumeMountBuilder instance.
func (*VolumeMountBuilder) Add ¶
func (b *VolumeMountBuilder) Add(iVolumeMount *corev1.VolumeMount) *VolumeMountBuilder
Add used to add an VolumeMount to the VolumeMountBuilder.
func (*VolumeMountBuilder) Build ¶
func (b *VolumeMountBuilder) Build() []corev1.VolumeMount
Build used to generate a list of VolumeMount
func (*VolumeMountBuilder) Remove ¶
func (b *VolumeMountBuilder) Remove(volumeName string) *VolumeMountBuilder
Remove used to remove an VolumeMount from the VolumeMountBuilder.
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package feature provide the framework to manage Feature in a generic way.
|
Package feature provide the framework to manage Feature in a generic way. |
dogstatsd
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. |
otelcollector/defaultconfig
package defaultconfig exposes the otel-agent default config
|
package defaultconfig exposes the otel-agent default config |
Package override provides a set of function to override generic resource such as corev1.PodTemplate and corev1.Container.
|
Package override provides a set of function to override generic resource such as corev1.PodTemplate and corev1.Container. |
Package store provides a store use to manage deployment dependencies.
|
Package store provides a store use to manage deployment dependencies. |
Package testutils_test contains a set of unit-test helper functions to ease the creation of unit-test around the DatadogAgent CRD controller
|
Package testutils_test contains a set of unit-test helper functions to ease the creation of unit-test around the DatadogAgent CRD controller |