Skip to content

install: make install and upgrade values declarative - #165

Merged
EItanya merged 1 commit into
mainfrom
installer-declarative-values
Nov 9, 2026
Merged

EItanya merged 1 commit into
mainfrom
installer-declarative-values

Conversation

@EItanya

@EItanya EItanya commented Nov 9, 2026

Copy link
Copy Markdown

Upgrades used Helm's ResetThenReuseValues, and the upgrade path skipped the storage and database values. So a value removed from the config stayed on the release, and switching postgres or objectStore modes on an upgrade had no effect.

Install and upgrade now set each release's values from the chart and the config only. Install refuses once the substrate release is deployed and points to kubectl ate upgrade. A partial install can still be rerun.

Upgrade now needs the config the install used. Running it without -c on an external-database install applies the bundled defaults. --dry-run shows that diff.

On kind I installed with an external Postgres, then:

  • install again failed with "release substrate 1.0.1 is already installed".
  • upgrade --dry-run with the same config showed only chart changes.
  • upgrade with ateApi.logLevel: debug added the value, and a second upgrade without it removed it.

I wrote this with Claude Code and reviewed the diff.

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>
@EItanya
EItanya merged commit 691b239 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