Skip to content

fix(chart): inject proxyEnv into the resource-monitor DaemonSet - #312

Merged
saadqbal merged 1 commit into
developfrom
feat/resource-monitor-proxy-env
Jul 7, 2026
Merged

fix(chart): inject proxyEnv into the resource-monitor DaemonSet#312
saadqbal merged 1 commit into
developfrom
feat/resource-monitor-proxy-env

Conversation

@LukasWodka

Copy link
Copy Markdown
Contributor

Summary

resource-monitor is the only backend-calling workload whose pod gets no proxy env from the chart — jobs-manager, pods-monitor, requests-proxy, image-refresh, auto-upgrade and the egress-reachability check all include tracebloc.proxyEnv already. Behind a corporate egress proxy its api-token-auth and edge-device-heartbeat POSTs dial direct and fail, so proxied clusters show stale/no node resource data.

One include, appended after the DaemonSet's fixed env list (no .Values.env passthrough here, so the jobs-manager-style exclusion dance from #238 does not apply).

Verified

  • helm template with env.HTTP_PROXY_HOST set renders the URL-form sextet + cluster-safe NO_PROXY, correctly indented, directly after CLIENT_PASSWORD.
  • Without HTTP_PROXY_HOST: renders nothing — non-proxy installs byte-identical.
  • helm lint clean.
  • In-cluster k8s API calls unaffected: NO_PROXY carries the internal ranges, and the kubernetes python client ignores ambient proxy env anyway.

Companion

Code half: tracebloc/client-runtime#165 (shared ProxyConfig; resource_monitor threads split-key settings). With this include alone, current resource-monitor images already work behind a proxy via requests' trust_env handling of the URL-form vars — so this chart change is independently shippable and is the half that matters for existing clusters.

Refs tracebloc/client-runtime#154.

🤖 Generated with Claude Code

resource-monitor is the only backend-calling workload whose pod gets NO
proxy env from the chart - jobs-manager, pods-monitor, requests-proxy,
image-refresh, auto-upgrade and the egress check all include
tracebloc.proxyEnv already. Behind a corporate egress proxy its
api-token-auth and edge-device-heartbeat POSTs dial direct and fail, so
proxied clusters show stale/no node resource data.
One include, appended after the existing env list (the DaemonSet has a
fixed env list - no .Values.env passthrough - so the jobs-manager-style
exclusion dance does not apply). Renders nothing when HTTP_PROXY_HOST
is unset; NO_PROXY carries the cluster-internal ranges and the
kubernetes python client ignores ambient proxy env, so in-cluster API
calls are unaffected.
Companion to tracebloc/client-runtime#154 (shared ProxyConfig +
resource_monitor threading the split-key settings); with this include
alone, current images already work via requests' trust_env handling of
the URL-form vars.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@LukasWodka
LukasWodka requested a review from saadqbal as a code ownerJuly 7, 2026 11:56
@LukasWodkaLukasWodka self-assigned this Jul 7, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@LukasWodka@saadqbal@divyasinghds