Skip to content

Commit 9d3c919

Browse files
Update otel-collector dependencies and fix otel proxy configuration env var naming (#503)
1 parent d4da8f9 commit 9d3c919

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

.buildkite/tests/values_capabilities_proxy_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ def test_proxy_envroinment_vars_are_set(
168168
if container["name"] == "metrics":
169169
assert "KOMODOR_HTTP_PROXY" in env_vars
170170
continue
171+
if container["name"] == "otel-collector":
172+
assert "HTTP_PROXY" in env_vars
173+
assert "HTTPS_PROXY" in env_vars
174+
continue
171175

172176
for env_name, expected_value in expected_env_vars.items():
173177

charts/komodor-agent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ The command removes all the Kubernetes components associated with the chart and
332332
| components.komodorDaemon.nodeEnricher.resources | object | `{"limits":{"cpu":"10m","memory":"100Mi"},"requests":{"cpu":"1m","memory":"10Mi"}}` | Set custom resources to the komodor agent node enricher container |
333333
| components.komodorDaemon.nodeEnricher.extraEnvVars | list | `[]` | List of additional environment variables, Each entry is a key-value pair |
334334
| components.komodorDaemon.opentelemetry | object | See sub-values | Configure the komodor daemon OpenTelemetry collector components |
335-
| components.komodorDaemon.opentelemetry.image | object | `{"name":"komodor-otel-collector","tag":"0.1.6"}` | Override the OpenTelemetry collector image name or tag. |
335+
| components.komodorDaemon.opentelemetry.image | object | `{"name":"komodor-otel-collector","tag":"0.1.7"}` | Override the OpenTelemetry collector image name or tag. |
336336
| components.komodorDaemon.opentelemetry.resources | object | `{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}` | Set custom resources to the OpenTelemetry collector container |
337337
| components.komodorDaemon.opentelemetry.extraEnvVars | list | `[]` | List of additional environment variables, Each entry is a key-value pair |
338338
| components.komodorDaemon.opentelemetry.volumes | object | `{"varlibdockercontainers":{"hostPath":{"path":"/var/lib/docker/containers","type":""},"mountPath":"/var/lib/docker/containers"},"varlogpods":{"hostPath":{"path":"/var/log/pods","type":""},"mountPath":"/var/log/pods"}}` | Configure volumes for OpenTelemetry collector |

charts/komodor-agent/templates/_proxy_conf.tpl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,21 @@
3737
value: {{ .Values.proxy.no_proxy }}
3838
{{- end }}
3939
{{- end }}
40+
{{- end }}
41+
42+
{{- define "opentelemetry.proxy-conf" -}}
43+
{{- if .Values.proxy.enabled }}
44+
{{- if .Values.proxy.http }}
45+
- name: "HTTP_PROXY"
46+
value: {{ .Values.proxy.http }}
47+
{{- end }}
48+
{{- if .Values.proxy.https }}
49+
- name: "HTTPS_PROXY"
50+
value: {{ .Values.proxy.https }}
51+
{{- end }}
52+
{{- if .Values.proxy.no_proxy }}
53+
- name: "NO_PROXY"
54+
value: {{ .Values.proxy.no_proxy }}
55+
{{- end }}
56+
{{- end }}
4057
{{- end }}

charts/komodor-agent/templates/opentelemetry/_containers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
failureThreshold: 3
4545
successThreshold: 1
4646
env:
47-
{{- include "komodorAgent.proxy-conf" . | indent 2 }}
47+
{{- include "opentelemetry.proxy-conf" . | indent 2 }}
4848
- name: NODE_NAME
4949
valueFrom:
5050
fieldRef:

charts/komodor-agent/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ components:
603603
# components.komodorDaemon.opentelemetry.image -- Override the OpenTelemetry collector image name or tag.
604604
image:
605605
name: komodor-otel-collector
606-
tag: 0.1.6
606+
tag: 0.1.7
607607
# components.komodorDaemon.opentelemetry.resources -- Set custom resources to the OpenTelemetry collector container
608608
resources:
609609
limits:

0 commit comments

Comments
 (0)