Documentation
¶
Index ¶
- func CleanupDatadogAgentInternalResources(logger logr.Logger, restConfig *rest.Config) error
- func SetupControllers(logger logr.Logger, mgr manager.Manager, platformInfo kubernetes.PlatformInfo, ...) error
- type DatadogAgentInternalReconciler
- type DatadogAgentProfileReconciler
- type DatadogAgentReconciler
- type DatadogDashboardReconciler
- type DatadogGenericResourceReconciler
- type DatadogMonitorReconciler
- type DatadogSLOReconciler
- type ExtendedDaemonsetOptions
- type SetupOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupDatadogAgentInternalResources ¶ added in v1.17.0
CleanupDatadogAgentInternalResources removes leftover DatadogAgentInternal resources when DDAI controller is disabled
func SetupControllers ¶
func SetupControllers(logger logr.Logger, mgr manager.Manager, platformInfo kubernetes.PlatformInfo, options SetupOptions) error
SetupControllers starts all controllers (also used by e2e tests)
Types ¶
type DatadogAgentInternalReconciler ¶ added in v1.16.0
type DatadogAgentInternalReconciler struct {
client.Client
PlatformInfo kubernetes.PlatformInfo
Log logr.Logger
Scheme *runtime.Scheme
Recorder record.EventRecorder
Options datadogagentinternal.ReconcilerOptions
// contains filtered or unexported fields
}
DatadogAgentInternalReconciler reconciles a DatadogAgentInternal object.
func (*DatadogAgentInternalReconciler) Reconcile ¶ added in v1.16.0
func (r *DatadogAgentInternalReconciler) Reconcile(ctx context.Context, ddai *v1alpha1.DatadogAgentInternal) (ctrl.Result, error)
Reconcile loop for DatadogAgent.
func (*DatadogAgentInternalReconciler) SetupWithManager ¶ added in v1.16.0
func (r *DatadogAgentInternalReconciler) SetupWithManager(mgr ctrl.Manager, metricForwardersMgr datadog.MetricsForwardersManager) error
SetupWithManager creates a new DatadogAgent controller.
type DatadogAgentProfileReconciler ¶
type DatadogAgentProfileReconciler struct {
Client client.Client
Log logr.Logger
Scheme *runtime.Scheme
Recorder record.EventRecorder
// contains filtered or unexported fields
}
DatadogAgentProfileReconciler reconciles a DatadogAgentProfile object.
func (*DatadogAgentProfileReconciler) Reconcile ¶
func (r *DatadogAgentProfileReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile loop for DatadogAgentProfile.
func (*DatadogAgentProfileReconciler) SetupWithManager ¶
func (r *DatadogAgentProfileReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager creates a new DatadogAgentProfile controller.
type DatadogAgentReconciler ¶
type DatadogAgentReconciler struct {
client.Client
PlatformInfo kubernetes.PlatformInfo
Log logr.Logger
Scheme *runtime.Scheme
Recorder record.EventRecorder
Options datadogagent.ReconcilerOptions
// contains filtered or unexported fields
}
DatadogAgentReconciler reconciles a DatadogAgent object.
func (*DatadogAgentReconciler) Reconcile ¶
func (r *DatadogAgentReconciler) Reconcile(ctx context.Context, dda *v2alpha1.DatadogAgent) (ctrl.Result, error)
Reconcile loop for DatadogAgent.
func (*DatadogAgentReconciler) SetupWithManager ¶
func (r *DatadogAgentReconciler) SetupWithManager(mgr ctrl.Manager, metricForwardersMgr datadog.MetricsForwardersManager) error
SetupWithManager creates a new DatadogAgent controller.
type DatadogDashboardReconciler ¶
type DatadogDashboardReconciler struct {
Client client.Client
DDClient datadogclient.DatadogDashboardClient
Log logr.Logger
Scheme *runtime.Scheme
Recorder record.EventRecorder
// contains filtered or unexported fields
}
DatadogDashboardReconciler reconciles a DatadogDashboard object
func (*DatadogDashboardReconciler) Reconcile ¶
func (r *DatadogDashboardReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile
func (*DatadogDashboardReconciler) SetupWithManager ¶
func (r *DatadogDashboardReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DatadogGenericResourceReconciler ¶ added in v1.12.0
type DatadogGenericResourceReconciler struct {
Client client.Client
DDClient datadogclient.DatadogGenericClient
Log logr.Logger
Scheme *runtime.Scheme
Recorder record.EventRecorder
// contains filtered or unexported fields
}
DatadogGenericResourceReconciler reconciles a DatadogGenericResource object
func (*DatadogGenericResourceReconciler) SetupWithManager ¶ added in v1.12.0
func (r *DatadogGenericResourceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DatadogMonitorReconciler ¶
type DatadogMonitorReconciler struct {
Client client.Client
DDClient datadogclient.DatadogMonitorClient
Log logr.Logger
Scheme *runtime.Scheme
Recorder record.EventRecorder
// contains filtered or unexported fields
}
DatadogMonitorReconciler reconciles a DatadogMonitor object.
func (*DatadogMonitorReconciler) Reconcile ¶
func (r *DatadogMonitorReconciler) Reconcile(ctx context.Context, instance *datadoghqv1alpha1.DatadogMonitor) (ctrl.Result, error)
Reconcile loop for DatadogMonitor.
func (*DatadogMonitorReconciler) SetupWithManager ¶
func (r *DatadogMonitorReconciler) SetupWithManager(mgr ctrl.Manager, metricForwardersMgr datadog.MetricsForwardersManager) error
SetupWithManager creates a new DatadogMonitor controller.
type DatadogSLOReconciler ¶
type DatadogSLOReconciler struct {
Client client.Client
DDClient datadogclient.DatadogSLOClient
Log logr.Logger
Scheme *runtime.Scheme
Recorder record.EventRecorder
// contains filtered or unexported fields
}
func (*DatadogSLOReconciler) Reconcile ¶
func (r *DatadogSLOReconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
Reconcile loop for Datadog SLO
func (*DatadogSLOReconciler) SetupWithManager ¶
func (r *DatadogSLOReconciler) SetupWithManager(mgr ctrl.Manager) error
type ExtendedDaemonsetOptions ¶
type ExtendedDaemonsetOptions struct {
Enabled bool
MaxPodSchedulerFailure string
SlowStartAdditiveIncrease string
CanaryDuration time.Duration
CanaryReplicas string
CanaryAutoPauseEnabled bool
CanaryAutoPauseMaxRestarts int
CanaryAutoFailEnabled bool
CanaryAutoFailMaxRestarts int
CanaryAutoPauseMaxSlowStartDuration time.Duration
}
ExtendedDaemonsetOptions defines ExtendedDaemonset options
type SetupOptions ¶
type SetupOptions struct {
SupportExtendedDaemonset ExtendedDaemonsetOptions
SupportCilium bool
Creds config.Creds
DatadogAgentEnabled bool
DatadogAgentInternalEnabled bool
DatadogMonitorEnabled bool
DatadogSLOEnabled bool
OperatorMetricsEnabled bool
V2APIEnabled bool
IntrospectionEnabled bool
DatadogAgentProfileEnabled bool
OtelAgentEnabled bool
DatadogDashboardEnabled bool
DatadogGenericResourceEnabled bool
}
SetupOptions defines options for setting up controllers to ease testing
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
feature
Package feature provide the framework to manage Feature in a generic way.
|
Package feature provide the framework to manage Feature in a generic way. |
|
feature/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. |
|
feature/otelcollector/defaultconfig
package defaultconfig exposes the otel-agent default config
|
package defaultconfig exposes the otel-agent default config |
|
override
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. |
|
store
Package store provides a store use to manage deployment dependencies.
|
Package store provides a store use to manage deployment dependencies. |
|
testutils
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 |