Skip to content

Release 0.5.0 - #23

Merged
zhanghaohit merged 3 commits into
mainfrom
release/0.5.0
Nov 27, 2026
Merged

zhanghaohit merged 3 commits into
mainfrom
release/0.5.0

Conversation

@zhanghaohit

Copy link
Copy Markdown
Collaborator

Bumps the chart version/appVersion and the pinned image tags in config/ and test/e2e/ to 0.5.0.

0.5.0, not 0.4.4. #22 adds a kind (APIConsumer), a gateway-wide write path for key-auth's consumer list, and — by default — an ai-stream-guard rule on every ModelFleet route. A minor release rather than a patch.

Blocked on #22. Order:

  1. APIConsumer: one object per caller, so adding or rotating a key is not a release #22 merges.
  2. 0.5.0-rc26 from main validated on the test cluster. The commits after 0.4.4-rc25 have unit tests only, and they include every consumer-ownership fix — the last of them changes the shared round that every consumer on a gateway goes through.
  3. This PR merges and 0.5.0 is tagged.
  4. versions.autoconfig and the >=0.4.4 requirements in the gateway chart and helmfile move to 0.5.0.

⚠ Upgrading an existing release needs the CRDs applied and the controller restarted, in that order. crds/ is not touched by helm upgrade, and whether APIConsumer is served is decided once at startup: miss it and nothing writes key-auth's defaultConfig.consumers, which — with a gateway chart that no longer renders that field — denies every caller on every route of that gateway. The controller carries a watchdog that exits when the CRD shows up, so a restart follows by itself, but applying the CRD first is still the documented order. The same mechanism prunes spec.gateway.streamGuard silently on an un-upgraded ModelFleet CRD, so disabled: true is accepted and ignored.

Moves the chart (version, appVersion), the kustomize image tag, the sample and the e2e
scripts' default image tags to 0.4.4 — the release that adds ModelFleet: several
single-hardware services presented as one model behind one gateway address, with traffic
split by tier and weight at Higress.

Upgrading an existing cluster takes two steps in this order, because `helm upgrade` does not
apply crds/ and the ModelFleet reconciler is registered only when its CRD is already served:

    kubectl apply --server-side -f deploy/helm/autoconfig/crds/
    helm upgrade ... --set image.tag=0.4.4      # chart and image together

The chart has to move with the image rather than only image.tag: the ClusterRole is rendered
from files/controller-rules.yaml, which gains secrets, wasmplugins, ingresses and modelfleets.
With the old chart the new controller starts and is then refused by RBAC on every reconcile.

A cluster that installs the CRD but creates no ModelFleet behaves exactly as before.

Claude-Session: https://claude.ai/code/session_01GVorddJkUMjYffPHXSDxop
The APIConsumer work in #22 adds a kind, a gateway-wide write path and a
stream-guard rule on every fleet route by default, so this is a minor
release rather than a patch.

Claude-Session: https://claude.ai/code/session_01GVorddJkUMjYffPHXSDxop
@zhanghaohit

Copy link
Copy Markdown
Collaborator Author

@zoboth please review this one — it is the 0.5.0 version bump, and the last thing between a validated commit and the tag.

It is release/0.4.4 renamed and rewritten: chart version/appVersion plus the pinned image tags in config/ and test/e2e/, 0.4.3 → 0.5.0, with main merged in. 0.5.0 rather than 0.4.4 because #22 adds a kind, a gateway-wide write path, and an ai-stream-guard rule on every fleet route by default.

Validated on the test cluster at 0.5.0-rc1 (same commit as main), upgraded in the documented order — CRDs applied server-side first, then the release:

  • ownership: a gateway labelled for another manager reports Programmed=False with the label named, records no appliedGatewayNamespace, and its list is untouched; a renamed consumerName does not freeze the gateway (another consumer's rotation goes through, no duplicate names)
  • the live takeover of that cluster's own consumer list: autoconfig owns consumers, helm keeps keys/global_auth, list byte-identical, and helm applying without consumers lets its claim lapse without dropping the entries
  • label scope: written on the label alone, untouched when labelled for somebody else, untouched with no label and nobody naming it
  • stream-guard: the rule carries the chart's threshold, follows a change in 2s, and emptying detectors withdraws the rule instead of writing one the plugin would refuse
  • bodylog: a cut stream has no finish_reason field at all, so LLMSilentTruncation does not fire on cuts

Five probe suites, FAILS=0 each, live gateway digest unchanged throughout. Two of those probes were wrong first and are worth knowing about if you ever read their output: one asked for spec.gatewayNamespace (the field is spec.gateway.namespace), so kubectl refused to create the objects and two checks then PASSED on an absent subject; another asked for credential where the rendered field is credentials, got an empty read, and reported it as a frozen gateway. Both now fail loudly instead.

One thing I decided not to do in this release: dropping the higress-system fallback in ourGateway. shengteng has published higress-llm 0.1.0 with the label, so the planned condition is met — but the production gateways are still running the older chart, and removing the fallback in the same release that starts writing consumers would mean a gateway that is ours by convention stops being managed the moment it is upgraded in the wrong order. It is a two-line change and belongs in its own release, once the labelled chart is actually deployed. The obligation is recorded in the code comment and the README.

After this merges I tag 0.5.0. Note the tag's image will be a third build of the same commit — rc26 and rc1 already have different digests with identical code, so what an rc validates here is the commit, not the bits.

@zoboth zoboth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read the whole diff and found no blockers. Approving.

What I checked

Each change in the diff moves a 0.4.3 pin to 0.5.0, and nothing else changes:

  • deploy/helm/autoconfig/Chart.yaml: version and appVersion (the default image.tag comes from appVersion)
  • config/manager/kustomization.yaml: newTag
  • config/samples/modelroute-qwen.yaml: the autoconfig-reload / autoconfig-hagate tags in the install comment
  • test/e2e/*.sh: the default IMG / IMG_TAG / TAG / ACR values and the usage lines

Every image in the 4pdosc/autoconfig* family moves to the same tag, and the third-party pins (llm-openresty:0.1.20, cache_aware_router:0.6.5) stay as they were. That's correct, since they have their own release cycles. 0.5.0 instead of 0.4.4 makes sense given that #22 adds a new kind and a gateway-wide write path.

Non-blocking notes

  1. I can only see the diff, not the whole tree, so I couldn't check for other 0.4.3 strings outside it, such as an explicit image.tag in values.yaml or install commands in the README. Running git grep -n '0\.4\.3' on the branch before you tag would settle it.
  2. #22 shows as closed. The REST view doesn't tell me whether it was merged. Since this diff against main only contains version bumps, and you validated #22's behaviour at 0.5.0-rc1 (the same commit as main), it looks like it is in main. Please confirm before tagging, so 0.5.0 doesn't ship without APIConsumer.
  3. The description still says "Blocked on #22" and step 2 still says 0.5.0-rc26, but the validation ran on 0.5.0-rc1. Updating it would keep the release record accurate.
  4. Step 4 (versions.autoconfig and the >=0.4.4 requirements in the gateway chart and helmfile) happens in other repos after the tag. It's worth tracking so it isn't forgotten. The same goes for the later release that drops the higress-system fallback once the labelled higress-llm chart is running in production. I agree with keeping that out of this release.
  5. You noted that the tag build will be a third digest of the same commit. The release notes could say which commit was validated, so nobody reads the rc digest as the one that was tested.

@zhanghaohit
zhanghaohit merged commit f9e91b7 into main Nov 27, 2026
1 check passed
@zhanghaohit
zhanghaohit deleted the release/0.5.0 branch November 27, 2026 00:01
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.

2 participants