Repository navigation
feat(stack): stack follow/unfollow, preview, pods, recent (#154, #156) - #164
Merged
Merged
Conversation
- stack follow and stack unfollow: get or stop the in-app notifications of a stack (POST and DELETE /api/v1/stack-instances/:id/follow). stack get shows Following and Followers when the server sends them. - stack preview: the merged Helm values that the next deploy uses (deploy-preview). YAML on stdout, one document for each chart; --chart gives plain YAML of one chart. The values-drift warning goes to stderr. -q lists the charts that changed since the last deploy. - stack pods: the live pods with READY (containers), RESTARTS, AGE and the container REASON, and the Warning events of the namespace (--all-events also shows Normal events). Event fields are sanitized. - stack recent: your 5 most recently updated stacks. - Tests: resetListFlags resets before the test too, and a stack list test no longer leaves --page Changed. go test -shuffle=on failed on main for some seeds. Closes #154 Closes #156 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
stack follow <stack>andstack unfollow <stack>: get or stop the in-app notifications of a stack (POSTandDELETE /api/v1/stack-instances/:id/follow). Both are idempotent and print the new state.stack getshowsFollowingandFollowerswhen the server sends them (server v0.8.0 or later). This is not the--followflag ofstack deployandstack logs, which streams a log.stack preview <stack> [--chart <name>]: the merged Helm values that the next deploy uses (GET /:id/deploy-preview).# chart: <name> (...)comment.--chartwrites plain YAML of one chart, so you can redirect it to a file.-qlists the charts whose values changed since the last deploy.-o json|yamlprints the previous and the pending values.stack pods <stack>: the live pods (GET /:id/pods) withREADY(containers),RESTARTS,AGEand the containerREASON(for exampleCrashLoopBackOff), and the Warning events of the namespace.--all-eventsalso shows Normal events. Event fields are sanitized before they reach the terminal.stack recent: your 5 most recently updated stacks (GET /stack-instances/recent).Other changes
stack listtable is now inprintStackTable, whichstack recentuses too. The output is the same.resetListFlagsresets before the test too, and astack listtest no longer leaves--pageChanged.go test -shuffle=on ./cmdfailed onmainfor some seeds.Tests
go test ./...passes.go test -shuffle=on ./cmdpasses in 7 runs, including the two seeds that failed before.cli/cmd/stack_inspect_test.go,cli/pkg/client/stack_inspect_test.go.Closes #154
Closes #156
🤖 Generated with Claude Code