Skip to content

install: export the upgrade and uninstall steps - #163

Merged
EItanya merged 1 commit into
mainfrom
installer-step-lists
Nov 9, 2026
Merged

EItanya merged 1 commit into
mainfrom
installer-step-lists

Conversation

@EItanya

@EItanya EItanya commented Nov 8, 2026

Copy link
Copy Markdown

kagent can add its own steps to install through InstallSteps, but not to upgrade or uninstall. It needs to remove its releases before substrate's worker pools and releases, and upgrade its chart after substrate.

This exports UpgradeSteps, UninstallSteps and UninstallSummary, which was inventory. Upgrade and Uninstall call them, so kubectl-ate is unchanged.

I wrote this with Claude Code and reviewed the diff.

kagent upgrades and uninstalls its own releases with substrate's. Export
UpgradeSteps, UninstallSteps and UninstallSummary, like InstallSteps, so it
can add its steps and its releases to the confirmation summary.

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
@EItanya
EItanya merged commit d8021f1 into main Nov 9, 2026
6 checks passed
EItanya added a commit that referenced this pull request Nov 10, 2026
…arative values (#167)

* Merge pull request #163 from kagent-dev/installer-step-lists

install: export the upgrade and uninstall steps
(cherry picked from commit d8021f1)

* install: take the chart version from Options.Version (#162)

* install: stamp charts from the substrate module version

kubectl-ate sets version.Version with ldflags, but a program that imports
the installer doesn't. Its embedded charts then keep 0.1.0 and pull images
that don't exist. Take the tag from the go.ate.dev/substrate dependency in
the build info instead, and skip pseudo-versions.

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>

* install: take the chart version from Options.Version

Replace the build-info search with an option. The caller knows which
substrate release it depends on, and the search had to guess around
replaces and pseudo-versions.

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>

---------

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
(cherry picked from commit 2c6fd6e)

* install: make install and upgrade values declarative (#165)

Upgrades reused each release's previous values, so removing a value or
switching storage modes from the config had no effect. Now every install
and upgrade sets values from the chart and the config only.

Install refuses once the substrate release is deployed, so changes to a
finished install go through upgrade, which can diff them first.

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
(cherry picked from commit 691b239)

---------

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
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