Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions api/datadoghq/v2alpha1/datadogagent_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ type DatadogFeatures struct {
// OtelCollector configuration.
// +doc-gen:link=https://docs.datadoghq.com/opentelemetry/setup/ddot_collector/install/kubernetes_daemonset/?tab=datadogoperator#overview
OtelCollector *OtelCollectorFeatureConfig `json:"otelCollector,omitempty"`
// OtelAgentGateway configuration.
OtelAgentGateway *OtelAgentGatewayFeatureConfig `json:"otelAgentGateway,omitempty"`
// LogCollection configuration.
LogCollection *LogCollectionFeatureConfig `json:"logCollection,omitempty"`
// LiveProcessCollection configuration.
Expand Down Expand Up @@ -1008,6 +1010,27 @@ type OtelCollectorFeatureConfig struct {
CoreConfig *CoreConfig `json:"coreConfig,omitempty"`
}

// OtelAgentGatewayFeatureConfig contains the configuration for the OTel Agent Gateway.
// +k8s:openapi-gen=true
type OtelAgentGatewayFeatureConfig struct {
// Enabled enables the OTel Agent Gateway.
// Default: false
// +optional
Enabled *bool `json:"enabled,omitempty"`

// Conf overrides the configuration for the default OTel Agent Gateway.
// This must point to a ConfigMap containing a valid OTel collector configuration.
// When passing a configmap, file name *must* be otel-gateway-config.yaml.
// +optional
Conf *CustomConfig `json:"conf,omitempty"`

// Ports contains the ports that the OTel Collector is listening on.
// Defaults: otel-grpc:4317 / otel-http:4318.
// +optional
// +listType=atomic
Ports []*corev1.ContainerPort `json:"ports,omitempty"`
}

// ControlPlaneMonitoringFeatureConfig contains the configuration for the control plane monitoring.
// +k8s:openapi-gen=true
type ControlPlaneMonitoringFeatureConfig struct {
Expand Down
41 changes: 41 additions & 0 deletions api/datadoghq/v2alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 54 additions & 1 deletion api/datadoghq/v2alpha1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading