Skip to content

feat(k8s): replace redis with valkey across cluster stack manifests - #31

Merged
dan-petty merged 3 commits into
release/v0.2.11from
feat/replace-redis-with-valkey
Sep 6, 2026
Merged

dan-petty merged 3 commits into
release/v0.2.11from
feat/replace-redis-with-valkey

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

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

  • ArgoCD Values (k8s/argocd/values.yaml): Overrode redis image repository to valkey/valkey and tag 8.0-alpine.
  • LLM Open-WebUI (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.
  • Test-First Verification (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.
  • Mock & Prompt Modernization: Updated mock entries and test prompt examples in tests/test_output.py and tests/test_pydantic_ai_format_prompt.py from Redis to Valkey.
  • Live Cluster Validation: Executed Helm upgrade on local minikube, verified deployment/argocd-redis rollout, and tested valkey-cli ping -> PONG on both argocd-redis and llm/valkey workloads.
  • Documentation: Updated k8s/README.md, docs/DEVCONTAINER_USAGE.md, and docs/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).

Copilot AI lite review requested due to automatic review settings September 6, 2026 03:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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-alpine and 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.

Comment thread tests/test_k8s_valkey_stack.py Resolved
Comment thread tests/test_k8s_valkey_stack.py Resolved
Base automatically changed from release/v0.2.10 to main September 6, 2026 04:06
@dan-petty
dan-petty force-pushed the feat/replace-redis-with-valkey branch from d4130f9 to 316e62c Compare September 6, 2026 04:08
@dan-petty
dan-petty changed the base branch from main to release/v0.2.11 September 6, 2026 04:08
@dan-petty
dan-petty force-pushed the feat/replace-redis-with-valkey branch from 316e62c to 89f40e3 Compare September 6, 2026 04:09
@dan-petty
dan-petty merged commit b4a4825 into release/v0.2.11 Sep 6, 2026
4 checks passed
@dan-petty
dan-petty deleted the feat/replace-redis-with-valkey branch September 6, 2026 06:52
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

2 participants