Skip to content

Make dev-ollama model list declarative with configMapGenerator#9

Merged
dwetmore merged 1 commit into
mainfrom
codex/make-models-declarative-in-git
Feb 11, 2026
Merged

Make dev-ollama model list declarative with configMapGenerator#9
dwetmore merged 1 commit into
mainfrom
codex/make-models-declarative-in-git

Conversation

@dwetmore
Copy link
Copy Markdown
Owner

Motivation

  • Provide a single source of truth for Ollama models so the model pull job can mount and read /models/models.txt reliably.
  • Replace a hand-authored ConfigMap YAML with a declarative generator so adding/removing models updates rendered manifests automatically.

Description

  • Added overlays/dev-ollama/models.txt containing one model per line with # comments supported.
  • Replaced the hand-written ollama-models ConfigMap in overlays/dev-ollama with a configMapGenerator in overlays/dev-ollama/kustomization.yaml using files: - models.txt=models.txt so the generated key is exactly models.txt.
  • Set generatorOptions.disableNameSuffixHash: true to keep the generated ConfigMap named ollama-models for mount compatibility.
  • Removed the now-redundant overlays/dev-ollama/ollama-models-configmap.yaml resource reference.

Testing

  • Installed kustomize and ran /tmp/kustomize-bin/kustomize build overlays/dev-ollama and grepped for name: ollama-models, which succeeded.
  • Verified that appending a newline model to overlays/dev-ollama/models.txt changes the rendered output by comparing SHA256 checksums before/after, which returned a changed result.
  • Confirmed the generated ConfigMap contains the models.txt key and that the existing pull job still mounts the ollama-models ConfigMap at /models/models.txt (render validation succeeded).

Codex Task

@dwetmore dwetmore merged commit 11c1e4e into main Feb 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant