Skip to content

Commit f1456e5

Browse files
committed
Add more configs in otel agent gateway
1 parent 8818f11 commit f1456e5

19 files changed

+3186
-6
lines changed

api/datadoghq/v2alpha1/datadogagent_types.go

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,39 @@ type OtelAgentGatewayFeatureConfig struct {
10551055
// +doc-gen:link=https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
10561056
// +optional
10571057
Affinity *corev1.Affinity `json:"affinity,omitempty"`
1058+
1059+
// Configure the component tolerations.
1060+
// +doc-gen:link=https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
1061+
// +optional
1062+
// +listType=atomic
1063+
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
1064+
1065+
// If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical"
1066+
// are two special keywords which indicate the highest priorities with the former being the highest priority.
1067+
// Any other name must be defined by creating a PriorityClass object with that name. If not specified,
1068+
// the pod priority is default, or zero if there is no default.
1069+
// +optional
1070+
PriorityClassName *string `json:"priorityClassName,omitempty"`
1071+
1072+
// Specify additional environment variables for the otel-agent container.
1073+
// +optional
1074+
// +listType=map
1075+
// +listMapKey=name
1076+
Env []corev1.EnvVar `json:"env,omitempty"`
1077+
1078+
// Specify additional environment variables from ConfigMaps or Secrets.
1079+
// +optional
1080+
// +listType=atomic
1081+
EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"`
1082+
1083+
// Image configuration for the OTel Agent Gateway container.
1084+
// +optional
1085+
Image *AgentImageConfig `json:"image,omitempty"`
1086+
1087+
// FeatureGates to pass to the OTel collector as a comma-separated list.
1088+
// Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
1089+
// +optional
1090+
FeatureGates *string `json:"featureGates,omitempty"`
10581091
}
10591092

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

api/datadoghq/v2alpha1/zz_generated.deepcopy.go

Lines changed: 36 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: 81 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)