Skip to content

feat(stack): stack follow/unfollow, preview, pods, recent (#154, #156) - #164

Merged
omattsson merged 1 commit into
mainfrom
feat/154-156-follow-preview-pods-recent
Oct 19, 2026
Merged

omattsson merged 1 commit into
mainfrom
feat/154-156-follow-preview-pods-recent

Conversation

@omattsson

Copy link
Copy Markdown
Owner

Summary

  • stack follow <stack> and stack unfollow <stack>: get or stop the in-app notifications of a stack (POST and DELETE /api/v1/stack-instances/:id/follow). Both are idempotent and print the new state. stack get shows Following and Followers when the server sends them (server v0.8.0 or later). This is not the --follow flag of stack deploy and stack logs, which streams a log.
  • stack preview <stack> [--chart <name>]: the merged Helm values that the next deploy uses (GET /:id/deploy-preview).
    • Table mode writes only YAML to stdout: one document for each chart, with a # chart: <name> (...) comment.
    • --chart writes plain YAML of one chart, so you can redirect it to a file.
    • The values-drift warning goes to stderr.
    • -q lists the charts whose values changed since the last deploy.
    • -o json|yaml prints the previous and the pending values.
  • stack pods <stack>: the live pods (GET /:id/pods) with READY (containers), RESTARTS, AGE and the container REASON (for example CrashLoopBackOff), and the Warning events of the namespace. --all-events also 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

  • The stack list table is now in printStackTable, which stack recent uses too. The output is the same.
  • Tests: resetListFlags resets before the test too, and a stack list test no longer leaves --page Changed. go test -shuffle=on ./cmd failed on main for some seeds.

Tests

  • go test ./... passes. go test -shuffle=on ./cmd passes in 7 runs, including the two seeds that failed before.
  • New tests: cli/cmd/stack_inspect_test.go, cli/pkg/client/stack_inspect_test.go.

Closes #154
Closes #156

🤖 Generated with Claude Code

- 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>
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: omattsson/stackctl/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 47367266-2139-45a3-90bd-7e9b891bbde4
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@omattsson
omattsson merged commit 095fd8a into main Oct 19, 2026
8 checks passed
@omattsson
omattsson deleted the feat/154-156-follow-preview-pods-recent branch October 19, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stack preview, stack pods and recent stacks (deploy-preview, pods, recent) stack follow / unfollow (POST and DELETE /stack-instances/:id/follow)

1 participant