Skip to content

harden helm cache and shared cmd helpers - #58

Merged
atkrad merged 3 commits into
mainfrom
harden-helm-cache-and-cmd-helpers
Aug 3, 2026
Merged

harden helm cache and shared cmd helpers#58
atkrad merged 3 commits into
mainfrom
harden-helm-cache-and-cmd-helpers

Conversation

@atkrad

@atkrad atkrad commented Aug 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Inject a per-client ChartCache, classify Helm/Kubernetes errors with typed checks, and show stale deploy-watcher status (with context.WithoutCancel for final refresh).
  • Rename internal/cmd/common to cmdopts and internal/util to validate; tighten cluster unreachable detection.
  • Harden shell executor quoting/terminal sizing and add unit tests.

Test plan

  • Unit tests added/updated
  • Scenario under scenarios/ (if behavior changes)
  • nix run .#lint / pre-commit clean
  • Manual smoke (command + expected result), if user-facing

Labels

  • One of: kind/feature, kind/bug, kind/docs, kind/chore
  • Add breaking-change if this breaks existing CLI or config behavior
  • Add skip-changelog for internal-only PRs that should not appear in notes

Checklist

  • Title is short and imperative (matches commit style)
  • Docs / CLI help updated when user-facing (README.md, docs/cli/)
  • No secrets or local-only paths in the diff

- inject per-client ChartCache and typed helm error wrapping
- surface stale deploy watcher status and use WithoutCancel
- rename common to cmdopts and util to validate
- harden shell executor quoting and add unit tests
@github-actions github-actions Bot added area/cli Commands, flags, UX copy area/helm Chart render, release, post-render area/deploy Deploy and plan session flow area/ci GitHub Actions and release packaging labels Aug 3, 2026
@atkrad atkrad added the kind/chore Cleanup, deps, CI, or refactor with no user-facing change label Aug 3, 2026
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

atkrad added 2 commits August 3, 2026 12:47
- cover refreshPodStatus stale/cancel paths and finalRefresh success
- exercise ChartCache expiry, cleanup, and createChartCopy
- extract startTerminalResizeWatch for unit-tested SIGWINCH lifecycle
- shrink final refresh waits in tests via package vars
- exercise deadline warning path and terminal resize signal
@atkrad atkrad self-assigned this Aug 3, 2026
@atkrad
atkrad merged commit 35e370f into main Aug 3, 2026
15 checks passed
@atkrad
atkrad deleted the harden-helm-cache-and-cmd-helpers branch August 3, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci GitHub Actions and release packaging area/cli Commands, flags, UX copy area/deploy Deploy and plan session flow area/helm Chart render, release, post-render kind/chore Cleanup, deps, CI, or refactor with no user-facing change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant