Documentation
¶
Index ¶
Constants ¶
const ExperimentDefaultTimeout = 15 * time.Minute
ExperimentDefaultTimeout is the duration after which a running experiment is automatically rolled back.
Variables ¶
This section is empty.
Functions ¶
func IsEqualStatus ¶ added in v1.19.0
func IsEqualStatus(current *v2alpha1.DatadogAgentStatus, newStatus *v2alpha1.DatadogAgentStatus) bool
Types ¶
type ProviderReader ¶ added in v1.29.0
type ProviderReader interface {
// Provider returns the detected provider and whether detection has completed.
Provider() (string, bool)
// InGracePeriod reports whether the detector is still within its startup grace
// window (an absent signal should not yet be treated as final).
InGracePeriod(window time.Duration) bool
}
ProviderReader exposes the cluster-provider detection result to the reconciler with lock-free reads. It is implemented by *introspection.Detector.
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, 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 {
SupportCilium bool
OperatorMetricsEnabled bool
IntrospectionEnabled bool
DatadogAgentProfileEnabled bool
UntaintControllerEnabled bool
DatadogCSIDriverEnabled bool
CreateControllerRevisions bool
// ExperimentTimeout overrides ExperimentDefaultTimeout. Zero means use the default.
ExperimentTimeout time.Duration
// ClusterProviderDetector supplies the detected cluster provider. Nil disables
// provider detection (reconcile behaves as before: empty provider).
ClusterProviderDetector ProviderReader
// SCCAuthorizer answers whether a ServiceAccount may use a SecurityContextConstraints,
// for the OpenShift node-agent ServiceAccount wiring. Nil installs the live
// SubjectAccessReview implementation; tests and the golden renderer inject a stub so
// they never issue a real authorization call.
SCCAuthorizer openshift.SCCAuthorizer
// APIReader is an uncached, direct-to-apiserver reader used to validate
// experiment rollback targets. A cached/informer-backed client's stale
// NotFound could be mistaken for a permanently-lost baseline revision.
// It is also used to read unscheduled agent pods, because the pod cache
// drops their node affinity.
APIReader client.Reader
}
ReconcilerOptions provides options read from command line
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. |
|
otelagentgateway/defaultconfig
package defaultconfig exposes the otel-agent default config in gateway
|
package defaultconfig exposes the otel-agent default config in gateway |
|
otelcollector/defaultconfig
package defaultconfig exposes the otel-agent default config
|
package defaultconfig exposes the otel-agent default config |
|
Package openshift holds the OpenShift-specific reconcile logic that depends on live cluster authorization state, currently the SecurityContextConstraints check that decides which ServiceAccount the node agent can run under.
|
Package openshift holds the OpenShift-specific reconcile logic that depends on live cluster authorization state, currently the SecurityContextConstraints check that decides which ServiceAccount the node agent can run under. |
|
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 providercaps holds the provider-conditional pod-template mutation framework.
|
Package providercaps holds the provider-conditional pod-template mutation framework. |
|
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 |