Repository navigation
fix(chart, e2e): the edge's MeshConfig is in every revision's manifest, so helm rollback works to the revision that created the edge namespace (#1514, #1515, #1543) - #1567
Merged
Conversation
…t, so helm rollback works to the revision that created the edge namespace (#1514, #1515, #1543) A pre-install hook cannot seed the edge's MeshConfig in a namespace the same revision creates (edge.namespaceCreate=true, the default once the edge is on), so there it stayed an object of the release, seeded once: in that revision's manifest, in no later one, and still live. Under Helm 3, helm rollback to that revision failed with 'no MeshConfig with the name "default" found' (#1471's failure, measured on kind with Helm 3.18.4; Helm 4.2.0 rolls back). The chart now renders that MeshConfig on every revision of a release whose edge namespace it created; the namespace carries aether.io/edge-meshconfig-in-manifest. The chart sets no field of its spec, so rendering it again never touches the operator's. A namespace an older chart created is not marked and is treated as before: upgrading changes nothing. #1515 reproduces (Helm 3: 'no Namespace with the name "aether-system" found', Helm 4 rolls back). No chart can change a stored manifest; the runbook has the check and the way round. e2e/first-install.sh runs under Helm 3 and Helm 4 (helm status in place of helm list -a) and gains leg viii, which needs the Gateway API CRDs. Chart aether 2.4.24 -> 2.4.25. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
This was referenced Oct 9, 2026
Closed
There was a problem hiding this comment.
🟢 Approval recommended
The stateful rendering behavior is documented and covered by template and cross-version rollback tests.
0 open findings
What changed in this PR
Ensures edge MeshConfig resources remain in every applicable Helm revision, enabling reliable Helm 3 rollbacks while preserving operator edits.
Changes:
- Marks chart-created edge namespaces and persistently renders their empty
MeshConfig. - Adds Helm 3/4-compatible rollback E2E coverage and Gateway API setup.
- Updates chart version, tests, and operator documentation.
| File | Description |
|---|---|
e2e/first-install.sh |
Tests edge rollback behavior across Helm versions. |
docs/runbook.md |
Documents rollback behavior and recovery procedures. |
docs/proposals/015_mesh-config.md |
Records the revised edge configuration lifecycle. |
docs/configuration.md |
Updates configuration reference. |
charts/aether/values.yaml |
Documents values behavior. |
charts/aether/templates/edge-namespace.yaml |
Adds the persistence marker. |
charts/aether/templates/edge-meshconfig.yaml |
Renders marked configurations every revision. |
charts/aether/templates/_helpers.tpl |
Determines persistent-manifest eligibility. |
charts/aether/Chart.yaml |
Bumps the chart to 2.4.25. |
charts/aether/BUILD.bazel |
Adds and updates template tests. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…oo, so a pass through chart 2.4.24 does not lose it (#1514 review) Chart 2.4.24 renders the edge Namespace without aether.io/edge-meshconfig-in-manifest, so an upgrade to it (or a rollback to one of its revisions) takes the marker off the Namespace, and it leaves the live MeshConfig out of the manifest. With the Namespace's marker as the only discriminator, every later 2.4.25 revision left the MeshConfig out as well, and helm rollback to the original 2.4.25 revisions failed for good with 'no MeshConfig with the name "default" found' (reproduced on kind, Helm 3.18.4). The MeshConfig now carries the marker as well; 2.4.24 does not render it, so it keeps it. Either marker is enough: the next upgrade to this chart renders the MeshConfig again and marks the Namespace again. The Namespace's still covers a MeshConfig that was deleted or replaced by hand. What cannot be closed is documented: under Helm 3 a rollback straight from a 2.4.24 revision to a 2.4.25 one fails (the stored 2.4.24 manifest holds no MeshConfig); an upgrade works. e2e/first-install.sh, leg viii-b: through the published 2.4.24 chart (its commit tag) and back, red first. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
… MeshConfig; the chart label patch is named (#1514 review) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
This was referenced Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Closes #1515
Part of #1514 (the edge, which is the title and the default; the control-plane case is left, see "Not fixed") and of #1543 (the script runs under Helm 4; the nightly job is not changed). #1542 is not touched; what was measured for it is at the end.
An agent wrote this pull request. Base:
da5198b2(mainmerged in since, no conflict).What was reproduced
All on kind (Kubernetes v1.35.8), the real chart and images, before any change. Follow-ups to #1513.
edge.enabled=trueat defaults, an upgrade,helm rollback aether 1Error: no MeshConfig with the name "default" found; releasefailedat revision 3; revision 1's manifest holds 1 MeshConfig, revision 2's noneresource exists on cluster but not in original release, using cluster state as baseline)helm rollbackto the revision that holds itError: no Namespace with the name "aether-system" found; releasefailed; namespace untouched (same UID,Active)So #1515's "probably" is confirmed, for Helm 3. Both are the same Helm 3 behaviour as #1471 (
pkg/kube/client.go,Update), and Helm 4.2.0 has neither.#1514: the edge's MeshConfig
A
pre-installhook runs before the release's objects exist, so it cannot create the edge's MeshConfig in a namespace the same revision creates. It therefore stayed an object of the release, seeded once: in that one manifest, in no later one, still live.The fix is the opposite of a hook: render it on every revision, for a release whose edge namespace this chart created. That is safe for this MeshConfig because the chart sets no field of its spec (
spec: {}whatever the values):Which releases: the Namespace carries
aether.io/edge-meshconfig-in-manifest: "true"from the revision that creates it, and the chart reads that back withlookup(aether.edge.meshConfigInManifest). A namespace created by 2.4.24 or older is never marked. Bringing a live MeshConfig back into the manifest would make that revision one that cannot be rolled back to from an older one: the same bug, one revision later.Routes not taken: the Namespace as a hook (its lifetime would then hang on hook semantics, including the undocumented
never, and an upgrade from 2.4.24 would drop it from the manifest); apost-installhook (deadlocks--wait, as #1513 found).Render, before and after (
helm template, chart version held equal)edge.enabled=truehelm.sh/resource-policy: keep) gains the same annotation line; nothing elseedge.enabled=true,edge.namespaceCreate=falseedge.enabled=true,meshConfig.createDefault=falseThe change that matters is on later revisions and needs a cluster: with the marker on the live namespace the MeshConfig is rendered again instead of skipped. No pod template changes.
Review round 1: back through chart 2.4.24 (the one-release skew)
Copilot's finding, reproduced on kind with Helm 3.18.4 and the published 2.4.24 chart: 2.4.24 renders the edge Namespace without the marker, so an upgrade to it (or a rollback to one of its revisions) takes the marker off, and it leaves the live MeshConfig out of the manifest. With the Namespace as the only place the marker lived, the next 2.4.25 revision left the MeshConfig out too, for good, and
helm rollbackto the original 2.4.25 revisions failed withno MeshConfig with the name "default" found.Fixed as suggested: the MeshConfig carries the marker as well, and either one is enough. 2.4.24 does not render the live MeshConfig, so it does not touch its annotations; the next upgrade to this chart renders the MeshConfig again and marks the Namespace again. The Namespace's marker stays as the second source: a MeshConfig deleted or replaced by hand carries none, and an object that was in the previous manifest and is not rendered is deleted by Helm. Objects of an older chart carry neither and are still not re-adopted.
Measured after the fix (Helm 3.18.4): revisions 1, 2 (this chart), 3 (2.4.24), 4 (this chart) hold 1, 1, 0, 1 MeshConfig; rollback to 1, to 4, to 3, an upgrade, and a rollback to 2 all succeed; the namespace is marked again after each upgrade to this chart.
What cannot be closed, and the runbook says so: under Helm 3 a
helm rollbackstraight from a 2.4.24 revision to a 2.4.25 one fails (measured), because the stored 2.4.24 manifest holds no MeshConfig.helm upgradegoes forward.e2e leg viii-b does 2.4.25 -> 2.4.24 -> 2.4.25 with the published chart, pulled by its commit tag (the bare
2.4.24tag was rewritten while this was being written, and atag@digestreference then failed on a digest mismatch). Against the previous head of this branch:and on this head, under Helm 3.18.4 and Helm 4.2.0 (whole suite green on both):
The template test
aether_edge_meshconfig_seed_created_namespace_testnow expects the annotation on the MeshConfig; it failed against the previous head.What an operator sees on upgrade
No workload rolls and no MeshConfig changes. Helm does patch the
helm.sh/chartlabel on the objects it renders, as on every chart upgrade (review round 2). Measured with Helm 3.18.4: a release installed and upgraded by the chart onmainwith the edge on, an edit of the edge's MeshConfig, then an upgrade to this chart.generation=1; both MeshConfigs keep UID, generation and spec; the edge namespace's annotations are unchanged (no marker).helm rollbackto the 2.4.24 revision and back to the 2.4.25 one both succeed. Rollback to the old seeding revision still fails as before (documented; the way round of "Chart 2.4.24" applies). An upgrade back to the 2.4.24 chart succeeds.For an edge namespace created by 2.4.25:
helm rollbackworks to the revision that created it.helm get manifestlists the edge's MeshConfig on every revision.meshConfig.createDefault=falsetakes the MeshConfig out of the manifest and leaves it live with its spec, and turning it on again brings the same object back; an object deleted and recreated by hand stays as created through an upgrade and two rollbacks (it gains Helm's ownership annotations); a deleted one is created again by the next upgrade.helm uninstallandedge.enabled=falsedelete the edge namespace as before.Post-deploy check (runbook, "Chart 2.4.25"):
#1515: a runbook note, no chart change
A chart cannot change a stored manifest, and Helm refuses a Namespace the release does not own if the chart renders it again. The runbook ("Chart 2.4.25") has the error, the check for affected revisions, and the way round, measured:
helm upgradewith that revision's values (helm get values --revision N -o yaml, passed with-f) succeeds, also after the failed rollback.#1543: the script under Helm 4
release_fieldreadshelm status -o jsoninstead ofhelm list -a; the diagnostics pick the list flags by version;verifyprints the Helm version. That was the only incompatibility: the whole suite passes under Helm 4.2.0 (releaseapply_method: ssa), leg v-a2 on its "the upgrade went through" branch.Not done: running the nightly job on each Helm. That is a workflow change and is left for a separate pull request.
Tests, red first
Template tests (
charts/aether/BUILD.bazel), against the unchanged chart:mainaether_edge_namespace_marks_meshconfig_in_manifest_testaether_edge_namespace_unmarked_without_seed_test(guard: no marker withmeshConfig.createDefault=false)aether_edge_namespace_still_rendered_test(existing guard, now also pins the one annotation)aether_edge_meshconfig_seed_created_namespace_test(existing: a release object, no hook annotation)Mutation: with the annotation misspelt in the template, the first and third fail.
lookupreturns nothing underhelm template, so the later-revision behaviour is tested on a cluster only.e2e:
e2e/first-install.shgets leg viii, run last. It turns the edge on with its defaults, waits for the edge pods, edits the MeshConfig, upgrades, rolls back to the revision that created the namespace and forward, and asserts the release isdeployed, the MeshConfig is the same object with the edit, both manifests hold it and the namespace is marked; then turns the edge off.upnow installs the Gateway API CRDs (the edge renders a Gateway).This branch's script against the charts on
main, Helm 3.18.4:Against this branch, the whole suite passes with Helm 3.18.4 and with Helm 4.2.0:
bazel test //charts/... //e2e/...: 251 pass. The lint build over//charts/... //e2e/...,make format-checkandscripts/check-shell-lint.shpass.Not fixed, and not verified
namespace.create=true(the release stored in another namespace) is still seeded once as a release object, and under Helm 3 that revision still cannot be rolled back to. The same fix does not carry over: that seed holdsmeshConfig.proxy, and a spec rendered again is patched over the operator's (Helm 3) or conflicts with it (Helm 4). Not reproduced here; it is the same code path as the edge case was. chart: helm rollback still fails for the revision that seeds a MeshConfig in a namespace the same revision creates (the edge, by default) #1514 could be narrowed to it.kubectl, not through Helm:metadata.uidin the seed does not work. An apply over an existing object is refused (metadata.uid: field is immutable), but an apply that creates is refused too (uid mismatch ... no existing object was found), so a Helm 4 install would fail.ValidatingAdmissionPolicyonUPDATEofmeshconfigsthat denies a request addinghelm.sh/hookto an object that did not carry it does what is wanted: the apply of the seed over an operator's object is denied and the object is untouched, an apply that creates goes through, and ordinary edits are unaffected. It would add two cluster-scoped admission objects to every install, so it is left as a decision..sha256sumpublished next to it. No other Helm 4 version was tried.first-installjob has not run with leg viii; the suite was run locally. The last nightly took 7 minutes of its 45; the full suite took about 13 minutes locally.helm templateand applies the result behaves is unchanged and was not tried: it renders the marked form on every sync, a MeshConfig with an empty spec, as before.Chart version
aether2.4.24 -> 2.4.25 (mainis at 2.4.24).🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr