Repository navigation
Description
Problem Description
k8s/logging/loki-values.yaml sets deploymentMode: SingleBinary. In the grafana-community/loki chart, SingleBinary is the deprecated name of Monolithic since chart 12.0.0. The values.schema.json of chart 20.0.2 says "Monolithic (deprecated: SingleBinary)", and the Loki upgrade guide "Upgrade from the Loki Helm chart to the Community Helm chart" (section "11.x to 12.0") tells users to change the value. The chart still accepts the old name, so the render does not change today.
The chart also renders ServiceAccount loki-memcached, because memcached.enabled is true by default. chunksCache and resultsCache are off, so no memcached pod uses that ServiceAccount.
The change for #1632 moved Loki to grafana-community/loki 20.0.2. It did not change these keys, because a parallel change edits the same values file.
Reproduction Steps
- Run
helm template loki grafana-community/loki --version 20.0.2 -n logging -f k8s/logging/loki-values.yaml. - The output holds
kind: ServiceAccountwithname: loki-memcached. - Read
deploymentModein the chart'svalues.schema.json:SingleBinaryis a deprecated name.
Expected vs Actual Behavior
- Expected: the values use the current name
Monolithic, and the render holds no object that nothing uses. - Actual: the values use the deprecated name, and the render holds an unused ServiceAccount.
Proposed change
- Set
deploymentMode: Monolithicand change the comment aboveread,writeandbackendto the new name. - Make
_loki_modeintests/test_k8s_local_path_placement.pyacceptMonolithiconly. - Set
memcached.enabled: false, and confirm withhelm templatethat the only change in the render is the removed ServiceAccount.
Source: #1632
Proposed design
Problem statement
The Loki Helm values file uses the deprecated name SingleBinary for the deployment mode. The grafana-community/loki chart renamed it to Monolithic in version 12.0.0. The values file also renders an unused ServiceAccount loki-memcached because memcached.enabled defaults to true, while chunksCache and resultsCache are both off. This change sets the current name and removes the unused ServiceAccount.
Acceptance criteria
Requirement: deploymentMode uses the current name
The values file SHALL set deploymentMode to Monolithic.
Scenario: values file holds the current name
- WHEN k8s/logging/loki-values.yaml is read
- THEN deploymentMode is Monolithic and no line holds SingleBinary as a value
Requirement: comments use the current name
Every comment in the values file that names the deployment mode SHALL use Monolithic.
Scenario: no comment holds the old name
- WHEN k8s/logging/loki-values.yaml is read
- THEN no comment line contains the word SingleBinary
Requirement: memcached is disabled
The values file SHALL set memcached.enabled to false.
Scenario: memcached key is present and false
- WHEN k8s/logging/loki-values.yaml is read
- THEN memcached.enabled is false
Requirement: render holds no unused ServiceAccount
The helm template output SHALL contain no ServiceAccount named loki-memcached.
Scenario: render has no loki-memcached
- WHEN helm template loki grafana-community/loki --version 20.0.2 -n logging -f k8s/logging/loki-values.yaml is run
- THEN the output holds no document with kind ServiceAccount and name loki-memcached
Requirement: test accepts only Monolithic
The function _loki_mode SHALL accept Monolithic and reject SingleBinary.
Scenario: test fails on the old name
- WHEN _loki_mode is called with a values dict whose deploymentMode is SingleBinary
- THEN the function raises pytest.fail
Existing Tool Considered
No check has run. The change edits values for the existing grafana-community/loki Helm chart, which already supports Monolithic as the deployment mode and memcached.enabled: false. No new tool or library is needed. The written cost is editing two files (k8s/logging/loki-values.yaml and tests/test_k8s_local_path_placement.py) and verifying with helm template.
Key questions
- What is the current name of the deployment mode in grafana-community/loki chart 20.0.2?: Monolithic. The chart's values.schema.json says Monolithic (deprecated: SingleBinary), and the upgrade guide for 11.x to 12.0 tells users to change the value. [sources: openspec/changes/archive/2026-10-28-1632-loki-grafana-community-chart/design.md:46, k8s/logging/loki-values.yaml:6]
- Should _loki_mode accept only Monolithic or both Monolithic and SingleBinary?: Only Monolithic. The body's proposed change says to make _loki_mode accept Monolithic only. The project should use the current name and not keep the deprecated alias. (best practice) [sources: openspec/changes/archive/2026-10-28-1632-loki-grafana-community-chart/design.md:54, tests/test_k8s_local_path_placement.py:62]
- Chosen: Accept only Monolithic. The body's proposed change states this. The project should use the current name and drop the deprecated alias so a future chart that removes SingleBinary does not break the test.
- Rejected: Accept both Monolithic and SingleBinary. The chart still accepts the old name for backward compatibility. However, the project controls its own values file and should not depend on a deprecated alias.
- Does disabling memcached.enabled remove any other rendered resource?: No. chunksCache and resultsCache are both false, so no pod uses the memcached ServiceAccount. The only rendered resource removed is the ServiceAccount loki-memcached. [sources: k8s/logging/loki-values.yaml:94, k8s/logging/loki-values.yaml:97]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The values file uses a deprecated chart key and renders a ServiceAccount nothing consumes.The deprecated name still works and the unused ServiceAccount causes no failure, so this is a low-urgency cleanup.It removes a deprecated reference and one unused object, but changes no user-facing behaviour.The change is a value rename, a comment update, one test assertion, and one boolean flag.Both edit k8s/logging/loki-values.yaml to remove chart defaults nobody uses, but 1133 targets the canary and sidecar while this targets the deprecated name and memcached.fix(k8s): loki runs from the grafana-community chart on loki 3.7.9, o…
devops-cli-service commentedon Oct 30, 2026
Status set to Ready at c6a837d (see proposed design in issue body).
devops-cli-service commentedon Nov 2, 2026
Staged: branch
fix/2441-loki-values-name-the-monolithic-deployment, draft pull request #3278. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:
The plan run made 2 model request(s), and used 104669 input tokens and 5718 output tokens. The tool calls, in order:
read_file({"path":"tests/core/test_k8s_local_path_placement.py","start_line":1,"end_line":140})references({"name":"SingleBinary"})read_spec({"capability":"loki-release-pin"})list_files({"directory":"k8s/logging"})A model review of the plan found these points. They stop no draft, and a person judges them:
criterion_droppedat groups, criteria: The issue requires thathelm templaterenders noloki-memcachedServiceAccount and that the render changes in no other way. No group runshelm template. The feasibility lists the command as a check only, and the spec scenarios only read the values file. Evidence: "Setmemcached.enabled: false, and confirm withhelm templatethat the only change in the render is the removed ServiceAccount."verify_format group 1: The verify command does not check the work of group 1. The test accepts bothMonolithicandSingleBinarybefore the change, and it never readsmemcached.enabled. It passes with or without the edit. Evidence: "uv run devops ci test tests/core/test_k8s_local_path_placement.py"docs(openspec): plan #2441 name the Loki deployment mode Monolithic
docs(openspec): fix plan #2441 folder name, test and comment tasks
9 remaining items
devops-cli-service commentedon Nov 3, 2026
The runner Job devops-cli-runner-20261103-100320-094d ended: succeeded.
Image digest: sha256:ef0d0ace3359daaf57e2bb1904dd131a16eca5fd52c54ffdcfeb5cf25f2c41f8
The last lines of its log:
devops-cli-service commentedon Nov 3, 2026
Cleared the stop at group 1 by the rule
digest: the runner image changed since the stop, from sha256:ef0d0ace3359daaf57e2bb1904dd131a16eca5fd52c54ffdcfeb5cf25f2c41f8 to sha256:71484cc064d6ab241bf53e6464dad843cc76f71025f0e46dc59adee51ae9b14f. The item is Planned again, and the Service takes it in the next round. The Service clears a stop one time for each runner image. A new stop on this image waits for a commentimplement: retry.[-]fix(k8s): loki values name the monolithic deployment mode and render no unused memcached service account[/-][+]fix(k8s): name the Loki deployment mode Monolithic[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 94 characters, and the limit is 60. The type and the scope stay.
fix(k8s): loki values name the monolithic deployment mode and render no unused memcached service accountfix(k8s): name the Loki deployment mode Monolithicdevops-cli-service commentedon Nov 6, 2026
Released in v0.70.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.70.0
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 16:15 UTC