Skip to content

feature: update.sh can be run by the 5Stack service - #707

Merged
lukepolo merged 1 commit into
mainfrom
feature/agent-update-support
Nov 1, 2026
Merged

lukepolo merged 1 commit into
mainfrom
feature/agent-update-support

Conversation

@lukepolo

@lukepolo lukepolo commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Small, opt-in changes so the 5Stack service can run update.sh from a release bundle. Panels updating with ./update.sh behave exactly as before.

  • The node's panel-version label uses FIVESTACK_RELEASE when set, since a release bundle has no .git
  • A missing Steam Web API key with no terminal to ask stops update.sh with a clear message instead of waiting forever
  • With Vault, setup-env.sh skips its vault CLI step when the 5Stack service runs it (it handles Vault itself and asks before writing); without it, the login check is unchanged
  • apply_overlay calls FIVESTACK_PRE_APPLY with the rendered overlay before applying, and stops if it refuses (the service uses it to hold new matches when an apply would restart something without a zero-downtime rollout)
  • New apply_overlay_test.sh plus three setup-env tests; each fails on main

- labels the node with the release version when there is no .git
- stops instead of waiting when it would ask for a Steam key with no terminal
- leaves Vault to the 5Stack service when it runs update.sh
- lets the 5Stack service check each rendered overlay before it is applied
@lukepolo
lukepolo merged commit 27eb4a1 into main Nov 1, 2026
7 checks passed
@lukepolo
lukepolo deleted the feature/agent-update-support branch November 1, 2026 11:57
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.

1 participant