Bas Cancrinus b4b489d7f2
feat(helm): optional per-image tags for gateway, frontend and provisioner (#8337)
* feat(helm): optional per-image tags for gateway, frontend and provisioner

All three DeerFlow images take `image.tag`. A backend rebuilt on top of a
release (extra packages such as an optional sandbox SDK, a local fix) needs
its own tag, so the frontend and provisioner then need re-tagged copies of
the release under that tag.

Add `image.gatewayTag`, `image.frontendTag` and `image.provisionerTag`,
empty by default; an empty one falls back to `image.tag`, so existing
values render unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(helm): fail the render on a non-string per-image tag

`--set image.gatewayTag=20261118` passes an integer: printf rendered the
image as `deer-flow-backend:%!s(int64=20261118)`, and `default` silently
replaced an integer 0 with `image.tag`. A shared `deer-flow.imageTag`
helper now fails the render on any non-string override and names
--set-string; README and values.yaml say to quote numeric tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(helm): check the per-image tag's type, not its kind

Helm 3.18.0 passes an unquoted number from a parent chart's values to the
subchart as a json.Number, whose kind is "string", so kindIs let 7.0 and
0123 through and they rendered as 7 and 83. typeIs rejects them; quoted
tags still render as written. The error now names the Go type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:28:40 +08:00
..