Skip to content

feat: shared-values update, override branch get, logout --all, dashboard, favorite check (#160, #161) - #168

Merged
omattsson merged 1 commit into
mainfrom
feat/160-161-small-gaps-dashboard
Oct 19, 2026
Merged

omattsson merged 1 commit into
mainfrom
feat/160-161-small-gaps-dashboard

Conversation

@omattsson

Copy link
Copy Markdown
Owner

Summary

#160:

  • cluster shared-values update <cluster> <id|name> [--name] [--description] [--priority] [--file] [--set k=v] (admin).
    • The server replaces the full record and has no GET for one entry. The command reads the list, finds the entry (ID without case, or the exact name; a duplicate name is refused), merges the flags and sends name, description, values and priority.
    • --file replaces the values. --set changes keys of the stored (or file) values.
    • --set writes the stored YAML again. Comments, the key order and anchors are not kept, and a note on stderr says so when the text changes.
    • shared-values set: the help now says that each call creates a new entry.
  • override branch get <stack> <chart>: exit code 1 when the chart has no branch override, as override get does.
  • logout --all:
    • It calls POST /auth/logout-all for the user of the login session of the context, or for the user of the API key when there is no session. A 401 gets one renewal and one retry.
    • It then runs the normal logout. When logout-all fails, the command stops and keeps the token file.

#161 (the rest; server info, ping, ui-config and the TTL check shipped in #163):

  • dashboard: failing stacks (status error), stacks that expire within the next hour, recent deployments, and cluster health (devops and admin).
    • The server data covers all users; the help says so.
    • The role user gets clusters without health data, so the table hides them.
    • -q prints the unique IDs of the failing and expiring stacks.
  • favorite check --type --id: prints yes or no (exit 0). -o json|yaml prints {"is_favorite": ...}.

Other changes

  • types.SharedValues gets description.
  • New contract cases: the dashboard types, SharedValues and UpdateSharedValuesRequest.

Tests

  • go test ./... passes, also go test -shuffle=on ./cmd. staticcheck (latest) has no findings.
  • New tests: cli/cmd/small_gaps_test.go (merge, file, YAML note, errors; branch get; logout --all with renewal, the API key path and failure; favorite check; dashboard sections, the role user, quiet, JSON) and cli/pkg/client/small_gaps_test.go.

Closes #160
Closes #161

🤖 Generated with Claude Code

…ard, favorite check (#160, #161)

- cluster shared-values update <cluster> <id|name>: reads the entry,
  merges --name, --description, --priority, --file (replaces the values)
  and --set (changes keys) and sends the full record. A stderr note says
  when --set changes the stored YAML text (comments, key order).
  shared-values set: the help now says that each call creates an entry.
- override branch get <stack> <chart> (exit 1 without an override).
- logout --all: logout-all for the user of the login session (else of the
  API key), one renewal on 401, then the normal logout. On failure the
  token file stays.
- dashboard: failing stacks, stacks that expire within the hour, recent
  deployments and cluster health (devops and admin); all users. -q
  prints the IDs of the failing and expiring stacks.
- favorite check --type --id: prints yes or no.
- types.SharedValues gets description. Contract cases for the dashboard
  and shared values types.

Closes #160
Closes #161

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omattsson
omattsson merged commit db4a38c into main Oct 19, 2026
7 checks passed
@omattsson
omattsson deleted the feat/160-161-small-gaps-dashboard branch October 19, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant