Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rakesh-garimella committed Jan 30, 2025
1 parent 797c5dc commit 7df4637
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/resources/otelcollector/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ func NewLogAgentApplierDeleter(image, namespace, priorityClassName string) *Agen
commonresources.WithPriorityClass(priorityClassName),
commonresources.WithResources(makeAgentResourceRequirements(logAgentMemoryLimit, logAgentMemoryRequest, logAgentCPURequest)),
withEnvVarFromSource(config.EnvVarCurrentPodIP, fieldPathPodIP),
withEnvVarFromSource(config.EnvVarCurrentNodeName, fieldPathNodeName),
commonresources.WithGoMemLimitEnvVar(metricAgentMemoryLimit),
withVolumes(volumes),
withVolumeMounts(volumeMounts),
Expand Down
5 changes: 5 additions & 0 deletions internal/resources/otelcollector/testdata/log-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ spec:
- args:
- --config=/conf/relay.conf
env:
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: GOMEMLIMIT
value: "1006632960"
envFrom:
Expand Down

0 comments on commit 7df4637

Please sign in to comment.