Skip to content

Commit b4a0cc1

Browse files
committed
Add more configs in otel agent gateway
1 parent cab4ef9 commit b4a0cc1

17 files changed

+304
-4
lines changed

api/datadoghq/v2alpha1/datadogagent_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,11 @@ type OtelAgentGatewayFeatureConfig struct {
10391039
// +optional
10401040
// +listType=atomic
10411041
Ports []*corev1.ContainerPort `json:"ports,omitempty"`
1042+
1043+
// FeatureGates to pass to the OTel collector as a comma-separated list.
1044+
// Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
1045+
// +optional
1046+
FeatureGates *string `json:"featureGates,omitempty"`
10421047
}
10431048

10441049
// ControlPlaneMonitoringFeatureConfig contains the configuration for the control plane monitoring.

api/datadoghq/v2alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/datadoghq/v2alpha1/zz_generated.openapi.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/v1/datadoghq.com_datadogagentinternals.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,6 +2013,11 @@ spec:
20132013
Enabled enables the OTel Agent Gateway.
20142014
Default: false
20152015
type: boolean
2016+
featureGates:
2017+
description: |-
2018+
FeatureGates to pass to the OTel collector as a comma-separated list.
2019+
Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
2020+
type: string
20162021
ports:
20172022
description: |-
20182023
Ports contains the ports that the OTel Collector is listening on.
@@ -10001,6 +10006,11 @@ spec:
1000110006
Enabled enables the OTel Agent Gateway.
1000210007
Default: false
1000310008
type: boolean
10009+
featureGates:
10010+
description: |-
10011+
FeatureGates to pass to the OTel collector as a comma-separated list.
10012+
Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
10013+
type: string
1000410014
ports:
1000510015
description: |-
1000610016
Ports contains the ports that the OTel Collector is listening on.

config/crd/bases/v1/datadoghq.com_datadogagentinternals_v1alpha1.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,6 +2107,10 @@
21072107
"description": "Enabled enables the OTel Agent Gateway.\nDefault: false",
21082108
"type": "boolean"
21092109
},
2110+
"featureGates": {
2111+
"description": "FeatureGates to pass to the OTel collector as a comma-separated list.\nExample: \"component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest\"",
2112+
"type": "string"
2113+
},
21102114
"ports": {
21112115
"description": "Ports contains the ports that the OTel Collector is listening on.\nDefaults: otel-grpc:4317 / otel-http:4318.",
21122116
"items": {
@@ -9958,6 +9962,10 @@
99589962
"description": "Enabled enables the OTel Agent Gateway.\nDefault: false",
99599963
"type": "boolean"
99609964
},
9965+
"featureGates": {
9966+
"description": "FeatureGates to pass to the OTel collector as a comma-separated list.\nExample: \"component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest\"",
9967+
"type": "string"
9968+
},
99619969
"ports": {
99629970
"description": "Ports contains the ports that the OTel Collector is listening on.\nDefaults: otel-grpc:4317 / otel-http:4318.",
99639971
"items": {

config/crd/bases/v1/datadoghq.com_datadogagentprofiles.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,6 +2013,11 @@ spec:
20132013
Enabled enables the OTel Agent Gateway.
20142014
Default: false
20152015
type: boolean
2016+
featureGates:
2017+
description: |-
2018+
FeatureGates to pass to the OTel collector as a comma-separated list.
2019+
Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
2020+
type: string
20162021
ports:
20172022
description: |-
20182023
Ports contains the ports that the OTel Collector is listening on.

config/crd/bases/v1/datadoghq.com_datadogagentprofiles_v1alpha1.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,10 @@
21112111
"description": "Enabled enables the OTel Agent Gateway.\nDefault: false",
21122112
"type": "boolean"
21132113
},
2114+
"featureGates": {
2115+
"description": "FeatureGates to pass to the OTel collector as a comma-separated list.\nExample: \"component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest\"",
2116+
"type": "string"
2117+
},
21142118
"ports": {
21152119
"description": "Ports contains the ports that the OTel Collector is listening on.\nDefaults: otel-grpc:4317 / otel-http:4318.",
21162120
"items": {

config/crd/bases/v1/datadoghq.com_datadogagents.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,6 +2013,11 @@ spec:
20132013
Enabled enables the OTel Agent Gateway.
20142014
Default: false
20152015
type: boolean
2016+
featureGates:
2017+
description: |-
2018+
FeatureGates to pass to the OTel collector as a comma-separated list.
2019+
Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
2020+
type: string
20162021
ports:
20172022
description: |-
20182023
Ports contains the ports that the OTel Collector is listening on.
@@ -10051,6 +10056,11 @@ spec:
1005110056
Enabled enables the OTel Agent Gateway.
1005210057
Default: false
1005310058
type: boolean
10059+
featureGates:
10060+
description: |-
10061+
FeatureGates to pass to the OTel collector as a comma-separated list.
10062+
Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
10063+
type: string
1005410064
ports:
1005510065
description: |-
1005610066
Ports contains the ports that the OTel Collector is listening on.

config/crd/bases/v1/datadoghq.com_datadogagents_v2alpha1.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,6 +2107,10 @@
21072107
"description": "Enabled enables the OTel Agent Gateway.\nDefault: false",
21082108
"type": "boolean"
21092109
},
2110+
"featureGates": {
2111+
"description": "FeatureGates to pass to the OTel collector as a comma-separated list.\nExample: \"component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest\"",
2112+
"type": "string"
2113+
},
21102114
"ports": {
21112115
"description": "Ports contains the ports that the OTel Collector is listening on.\nDefaults: otel-grpc:4317 / otel-http:4318.",
21122116
"items": {
@@ -10023,6 +10027,10 @@
1002310027
"description": "Enabled enables the OTel Agent Gateway.\nDefault: false",
1002410028
"type": "boolean"
1002510029
},
10030+
"featureGates": {
10031+
"description": "FeatureGates to pass to the OTel collector as a comma-separated list.\nExample: \"component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest\"",
10032+
"type": "string"
10033+
},
1002610034
"ports": {
1002710035
"description": "Ports contains the ports that the OTel Collector is listening on.\nDefaults: otel-grpc:4317 / otel-http:4318.",
1002810036
"items": {

docs/configuration.v2alpha1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ spec:
160160
| features.otelAgentGateway.conf.configMap.items | Maps a ConfigMap data `key` to a file `path` mount. |
161161
| features.otelAgentGateway.conf.configMap.name | Is the name of the ConfigMap. |
162162
| features.otelAgentGateway.enabled | Enables the OTel Agent Gateway. Default: false |
163+
| features.otelAgentGateway.featureGates | FeatureGates to pass to the OTel collector as a comma-separated list. Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest" |
163164
| features.otelAgentGateway.ports | Contains the ports that the OTel Collector is listening on. Defaults: otel-grpc:4317 / otel-http:4318. |
164165
| features.otelCollector.conf.configData | ConfigData corresponds to the configuration file content. |
165166
| features.otelCollector.conf.configMap.items | Maps a ConfigMap data `key` to a file `path` mount. |

0 commit comments

Comments
 (0)