Skip to content

fix(k8s): a log query dials the loki.url setting - #3802

Merged
dan-petty merged 2 commits into
mainfrom
fix/2651-devops-k8s-logs-names-a-loki
Nov 6, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/2651-devops-k8s-logs-names-a-loki

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Issue #2651: the error text of the kubectl fallback of devops k8s logs tells a person to "Configure loki.url", but no such setting exists. devops config set loki.url <url> fails with Unknown config key. The command, its --dry-run plan, the live log pane and the MCP tool k8s_logs dial the constant DEFAULT_LOKI_URL (http://localhost:3100) when --loki-url is absent, and a person cannot change that address in the configuration. The spec k8s-logs names loki.url in four scenarios.

Closes #2651

Change: openspec/changes/archive/2026-11-06-2651-devops-k8s-logs-names-a-loki/

The fallback error of `devops k8s logs` named a setting that did not exist, and the command dialled a localhost default that nobody configured. Add `loki.url` and resolve the address from the option, the setting, then the default for the command, the dry-run plan and the MCP tool.

Closes #2651
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 6, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 15:40
@dan-petty
dan-petty merged commit 98686f4 into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/2651-devops-k8s-logs-names-a-loki branch November 6, 2026 15:46
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.70.0](v0.69.1...v0.70.0)
(2026-11-06)


### Features

* **review:** name the repository in a tool run and the SARIF export
([#3798](#3798))
([6d12548](6d12548))


### Bug Fixes

* **k8s:** a log query dials the loki.url setting
([#3802](#3802))
([98686f4](98686f4))
* **k8s:** loki values name the Monolithic deployment mode
([#3800](#3800))
([cf4ac8f](cf4ac8f))


### Code Refactoring

* **ai:** ai callers use the HTTP entry point
([#3801](#3801))
([2f2548b](2f2548b)),
closes [#3791](#3791)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): Add loki.url config key for k8s logs

1 participant