feat: add opdev e2e command for local k3d testing - #14
Merged
Conversation
Adds a new subcommand to manage a local k3d Kubernetes cluster that mirrors production. Supports: up, build, seed, status, teardown. Builds Docker images, deploys via Helm with values-local.yaml overrides, and seeds test data (weight, heart rate) for E2E verification. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The previous commit included local-only changes to cleanCmd that referenced a 4-param CleanSessions not yet on main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
opdev e2esubcommand withup|build|seed|status|teardownfor managing a local k3d clustervalues-local.yamlfiles in the ownpulse repo (added in separate PR)Usage
Supports
--dry-runfor all operations.Test plan
go build ./src/compiles cleanlygo test ./...passes (1 test file, all existing tests pass)opdev e2e --helpshows correct usageopdev e2e up --dry-runprints expected steps without side effectsopdev e2e upcreates cluster, deploys, seeds data (requires Docker + k3d)opdev e2e statusshows healthy pods and passing health checksopdev e2e teardowncleans up completely🤖 Generated with Claude Code