Skip to content

install: take the chart version from Options.Version - #162

Merged
EItanya merged 2 commits into
mainfrom
installer-module-version
Nov 9, 2026
Merged

EItanya merged 2 commits into
mainfrom
installer-module-version

Conversation

@EItanya

@EItanya EItanya commented Nov 8, 2026 •

Copy link
Copy Markdown

Inside kagent's binary, version.Version is not a release tag, so the embedded charts keep 0.1.0 and pull :0.1.0 images. Only kubectl-ate's release build sets that variable with ldflags.

Options.Version sets the tag stamped on the charts. kagent passes the substrate release it depends on, for example from go list -m go.ate.dev/substrate at build time. Empty keeps using version.Version, so kubectl-ate is unchanged.

I wrote this with Claude Code and reviewed the diff.

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>
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>
@EItanya EItanya changed the title install: stamp charts from the substrate module version install: take the chart version from Options.Version Nov 9, 2026
@EItanya
EItanya merged commit 2c6fd6e 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