Skip to content

fix(k8s): name the reference models in the ConfigMap template - #4251

Merged
dan-petty merged 2 commits into
mainfrom
fix/4241-configmap-reference-models
Nov 9, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4241-configmap-reference-models

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The spend reports value local AI tokens at the hosted prices of qwen3.8:27b and qwen/qwen3-embedding-8b by the owner decision of 2026-11-09. The live ConfigMap holds ai.reference_model and ai.reference_embedding_model, but the template did not, so the next deploy-stack would remove them and the Service reports would value local tokens at gpt-4o again. The template now names both models, with a comment that gives the decision, the prices and the place of the prices (pricing_overrides.json on the Service volume). A repository-owned price is #4242.

Closes #4241

Change: openspec/changes/archive/2026-11-09-4241-the-configmap-template-names-the-reference/
Elapsed: 3.34s

The spend reports value local tokens at the hosted prices of qwen3.8:27b and qwen/qwen3-embedding-8b by the owner decision of 2026-11-09. The live ConfigMap holds both names, and the template did not, so a deploy would have removed them.
@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 9, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record for #4241.

Nothing is applied by this pull request. The live ConfigMap devops-cli-config already holds ai.reference_model: qwen3.8:27b and ai.reference_embedding_model: qwen/qwen3-embedding-8b. The change keeps the template equal to the live ConfigMap for these two keys, so a later deploy-stack does not remove them.

fail-to-pass run (uv run devops ci fail-to-pass --base origin/main): 2 tests fail on the base and pass on the branch.

  • test_the_rendered_template_names_the_reference_models_of_the_spend_reports: the base gives gpt-4o and text-embedding-3-small.
  • test_the_comment_above_the_reference_models_gives_the_decision_and_the_prices: the base has no reference_model line (StopIteration).

Narrow runs after the rebase onto origin/main: tests/k8s/test_k8s_configmap.py 18 passed; tests/k8s/test_k8s_configmap_keys.py (the key walk of #4093) 4 passed.

Full uv run devops ci under the shared lock, before the rebase: all checks passed (exit code 0).

Evidence for the price source: genai-prices 0.1.13 raises LookupError for both names, and the Service pod holds the two prices in /home/devops/.data/ai/pricing_overrides.json on its volume. A price that the repository owns needs new code; it is #4242.

Other differences between the rendering of k8s/devops/configmap.example.yaml (render_active_devops_configmap) and the live ConfigMap, compared key by key: only ai.tasks.stage (live only; a deliberate pause that a person removes after #4228 merges).

@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 17:34
@dan-petty
dan-petty merged commit 750cf78 into main Nov 9, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/4241-configmap-reference-models branch November 9, 2026 17:35
dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.102.0](v0.101.1...v0.102.0)
(2026-11-09)


### Features

* **k8s:** alert on the daily Claude spend
([#4246](#4246))
([cc3b078](cc3b078))


### Bug Fixes

* **k8s:** name the reference models in the ConfigMap template
([#4251](#4251))
([750cf78](750cf78))

---
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>
dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.102.0](v0.101.1...v0.102.0)
(2026-11-09)


### Features

* **k8s:** alert on the daily Claude spend
([#4246](#4246))
([cc3b078](cc3b078))


### Bug Fixes

* **k8s:** name the reference models in the ConfigMap template
([#4251](#4251))
([750cf78](750cf78))

---
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): the ConfigMap template names the reference models

1 participant