Repository navigation
feat(k8s): replace redis with valkey across cluster stack manifests - #31
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The newly added Valkey stack test suite has brittle assertions (StopIteration) and an incomplete raw-text pattern scan that can miss Redis images or misfire, so the intended verification is not reliably enforced.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR updates the repository’s Kubernetes stack configuration and related tests/docs to replace Redis usage with Valkey, ensuring manifests and fixtures reference valkey/valkey:8.0-alpine where appropriate.
Changes:
- Override ArgoCD Redis component image to
valkey/valkey:8.0-alpineand document the migration. - Update LLM Open-WebUI values to point websocket coordination at the Valkey service while keeping the (named) redis protocol driver configuration.
- Add/adjust tests and fixtures to validate Valkey configuration and remove Redis references in prompts/output examples.
File summaries
| File | Description |
|---|---|
| tests/test_pydantic_ai_format_prompt.py | Updates a prompt/example fixture from Redis to Valkey wording. |
| tests/test_output.py | Updates test fixture data and expected rendered output from Redis to Valkey. |
| tests/test_k8s_valkey_stack.py | Adds new tests asserting Valkey usage in k8s stacks and attempting to forbid Redis images. |
| k8s/README.md | Updates stack overview table to reflect Valkey backing/cache. |
| k8s/llm/values-open-webui.yaml | Documents Valkey integration and points websocket URL at Valkey service. |
| k8s/argocd/values.yaml | Overrides the ArgoCD Redis image to use Valkey and documents license intent. |
| docs/LOG.md | Adds a dated log entry describing the Redis→Valkey migration and verification steps. |
| docs/DEVCONTAINER_USAGE.md | Updates example package install list from redis-tools to valkey-tools. |
| docs/agent/task.md | Records a completed phase for the migration and updates WIP/pending task notes. |
Review details
- Files reviewed: 9/9 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
dan-petty
force-pushed
the
feat/replace-redis-with-valkey
branch
from
September 6, 2026 04:08
d4130f9 to
316e62c
Compare
dan-petty
force-pushed
the
feat/replace-redis-with-valkey
branch
from
September 6, 2026 04:09
316e62c to
89f40e3
Compare
Merged
15 tasks done
dan-petty
added a commit
that referenced
this pull request
Sep 6, 2026
…b management (#38) * feat(k8s): replace redis with valkey across cluster stack manifests (#31) * feat(k8s): replace redis with valkey across cluster stack manifests * test(k8s): address copilot feedback on manifest parsing and document assertions * docs(agent): update task tracking to completed for phase 35 * feat(mcp): expand FastMCP tools, prompt templates, and schema export (#33) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * test(mcp): author contract and integration test specifications for expanded tools, prompts, and resources * feat(mcp): expand FastMCP server to 72 tools, prompt templates, and schema export command * docs(mcp): update MCP_TOOLS, README, ROADMAP, and task tracking for phase 37 * fix(mcp): resolve schema union type parsing and update roadmap resource URIs * refactor(architecture): codebase stylistic and structural drift remediation (#32) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * fix(agents): prevent ThreadPoolExecutor blocking on tool timeout in runner * docs(valkey): expand roadmap and add IT domain knowledge base guide (#34) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * test(mcp): author contract and integration test specifications for expanded tools, prompts, and resources * feat(mcp): expand FastMCP server to 72 tools, prompt templates, and schema export command * docs(mcp): update MCP_TOOLS, README, ROADMAP, and task tracking for phase 37 * fix(mcp): resolve schema union type parsing and update roadmap resource URIs * feat(kb): add Valkey IT domain knowledge base reference guide and dynamic index counters * docs(roadmap): expand roadmap and pending features for milestone v0.2.12 Valkey integration * fix(agents): prevent ThreadPoolExecutor blocking on tool timeout in runner * docs(roadmap): add library ingestion engine and grounded AI guidance for v0.2.13 (#35) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * test(mcp): author contract and integration test specifications for expanded tools, prompts, and resources * feat(mcp): expand FastMCP server to 72 tools, prompt templates, and schema export command * docs(mcp): update MCP_TOOLS, README, ROADMAP, and task tracking for phase 37 * fix(mcp): resolve schema union type parsing and update roadmap resource URIs * feat(kb): add Valkey IT domain knowledge base reference guide and dynamic index counters * docs(roadmap): expand roadmap and pending features for milestone v0.2.12 Valkey integration * docs(roadmap): expand roadmap and pending features for milestone v0.2.13 library ingestion engine * fix(mcp): validate integer argument bounds and ensure consistent export-schemas instructions output * docs(agent): update task tracking for phase 39 completion and pr 35 review resolution * fix(agents): prevent ThreadPoolExecutor blocking on tool timeout in runner * feat(sdlc): enterprise SDLC conventions, repository governance, and GitHub automation roadmap (#36) * feat(governance): establish enterprise SDLC repository templates and community health policies * docs(sdlc): author enterprise software development life cycle architecture manual * docs(roadmap): expand roadmap with v0.2.14 enterprise GitHub repository automation * docs(agent): track phase 40 completion and PR 36 submission * fix(review): address copilot feedback on private key exclusion, PR template, and task status * feat(review): executive summary reporting, feedback loop hardening, and findings remediation (#37) * fix(security): remediate review findings for traversal, protocols, and tool validation * feat(review): harden self-improvement feedback loop and add report executive summary * docs(review): synchronize review task manual, SDLC, and working log * docs(agent): mark phase 41 complete and record PR 37 status * fix(review): address copilot feedback on secret masking, AST symbol fallback, error message, and dynamic patterns * docs(agent): note PR 36 merged into release branch * docs(roadmap): update v0.2.11 completed items and task tracking for merged PR 37 * test * feat(github): add declarative labels, milestones, projects v2, views and FastMCP tools * refactor(core): consolidate boilerplate decorators, AST cache, scanners, and table builder * feat(security): DevSecOps zero-trust hardening, secret sanitizer, fail-closed SSRF, sandbox isolation, and K8s perimeter * fix(review): address Copilot findings for Checkov exit handling, milestone due_on, gitleaks Windows paths, and symlink semantics * docs(release): record Phase 47.3 release v0.2.11 PR and Copilot remediation in task tracking and log
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces all occurrences of Redis across the workstation infrastructure and LLM Kubernetes stacks with Valkey (
valkey/valkey:8.0-alpine, BSD-3-Clause open-source license), verifies cluster health on minikube, and ensures 100% clean CI quality gates.Key Changes
k8s/argocd/values.yaml): Overrode redis image repository tovalkey/valkeyand tag8.0-alpine.k8s/llm/values-open-webui.yaml): Clarified websocket Redis connection to standalone Valkey service (valkey.llm.svc.cluster.local:6379/0) with embedded Redis subchart disabled.tests/test_k8s_valkey_stack.py): Added test suite validating Valkey image specifications in ArgoCD and LLM stack manifests and asserting zero proprietary Redis images.tests/test_output.pyandtests/test_pydantic_ai_format_prompt.pyfrom Redis to Valkey.deployment/argocd-redisrollout, and testedvalkey-cli ping->PONGon bothargocd-redisandllm/valkeyworkloads.k8s/README.md,docs/DEVCONTAINER_USAGE.md, anddocs/LOG.md.CI Quality Gate
All 10 quality gates verified green with
uv run devops ci(100% passing tests, >90% coverage, strict type checks, security & actionlint clean).