Skip to content

chore(tra-974): drop dead BACKEND_LOG_LEVEL key from backend chart - #158

Merged
mikestankavich merged 1 commit into
mainfrom
chore/tra-974-drop-dead-backend-log-level
Jun 10, 2026
Merged

chore(tra-974): drop dead BACKEND_LOG_LEVEL key from backend chart#158
mikestankavich merged 1 commit into
mainfrom
chore/tra-974-drop-dead-backend-log-level

Conversation

@mikestankavich

Copy link
Copy Markdown
Contributor

What

Follow-up cleanup to #157. Removes the dead BACKEND_LOG_LEVEL ConfigMap key (and its now-orphaned config.logLevel chart value) from the trakrf-backend chart.

The backend logger reads bare LOG_LEVEL via os.Getenv (logger/config.go) — there's no BACKEND_ prefix scheme, so config.logLevel → BACKEND_LOG_LEVEL was never read by the backend. Confirmed against the backend source. #157 added the real LOG_LEVEL emission via config.runtimeLogLevel; this drops the misleading key so the chart is honest.

Impact

  • No functional changeBACKEND_LOG_LEVEL was inert.
  • Removing it does change both envs' rendered ConfigMap (key drops out), so the next scripts/apply-root-app.sh gke rolls the prod backend pod once (clean restart, no behavior change). Preview keeps LOG_LEVEL=info via config.runtimeLogLevel. Applying in this window with Mike's go-ahead.

Verification (helm template)

# default render            → no BACKEND_LOG_LEVEL, no LOG_LEVEL
# --set runtimeLogLevel=info → LOG_LEVEL: "info" only (no BACKEND_LOG_LEVEL)
# chart renders clean (exit 0); root render: preview still carries runtimeLogLevel=info, prod neither

Tracking: TRA-974.

🤖 Generated with Claude Code

The trakrf-backend logger reads bare LOG_LEVEL via os.Getenv
(logger/config.go) — there is no BACKEND_ prefix scheme, so the chart's
config.logLevel → BACKEND_LOG_LEVEL ConfigMap key was never read by the
backend (confirmed against the backend source). PR #157 added the real
LOG_LEVEL emission (config.runtimeLogLevel); this removes the misleading
dead key and its now-orphaned config.logLevel value so the chart is honest.

No functional change — BACKEND_LOG_LEVEL was inert. Removing it does change
both envs' rendered ConfigMap (key drops out), so the next apply-root-app.sh
gke rolls the prod backend pod once (clean restart, no behavior change);
preview keeps LOG_LEVEL=info via config.runtimeLogLevel.

Verified via helm template: BACKEND_LOG_LEVEL absent from all renders;
LOG_LEVEL=info still emits when runtimeLogLevel is set; chart renders clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mikestankavich
mikestankavich merged commit adb819c into main Jun 10, 2026
19 checks passed
@mikestankavich
mikestankavich deleted the chore/tra-974-drop-dead-backend-log-level branch June 10, 2026 23:59
Sign up for free to 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.

1 participant