Repository navigation
feat(controller): namespaced MeshConfig with aether-system fallback - #267
Merged
Merged
Conversation
MeshConfig was a cluster-scoped singleton projected into one ConfigMap in the
control-plane namespace. To let an isolated component (the edge, moving to
aether-ingress) mount a co-located ConfigMap — without a configured namespace
list — make MeshConfig namespaced and have the controller project each CR into a
ConfigMap in its OWN namespace.
- CRD scope Cluster -> Namespaced (one `default` MeshConfig per namespace).
- Reconciler co-locates: projects into ConfigMap{Name, Namespace: req.Namespace}.
The ConfigMapNamespace field/flag is gone — the namespace is the CR's.
- aether-system fallback: a namespace's effective config is the control-plane
(controller's own) namespace MeshConfig with that namespace's CR merged over it
(set fields win, edition-2024 presence respected). A namespace inherits the
mesh-wide config unless it overrides; the fallback namespace projects verbatim.
- Fan-out: a change to the fallback MeshConfig re-projects every inheriting
namespace (Watches + map func over MeshConfigList).
- RBAC: ConfigMap write is now cluster-wide (a MeshConfig can be in any ns) — a
ClusterRole + ClusterRoleBinding; leases/events stay a namespaced Role.
- Seed CR is namespaced (release ns); the lookup is namespace-scoped.
Tests: effectiveSpec (verbatim in the fallback ns, merge-over-fallback for an
override, own-spec when no fallback) + enqueueInheritors (fan-out only on a
fallback-ns change).
BREAKING: a CRD scope change is not allowed in place. Upgrading requires deleting
the old cluster-scoped CRD (`kubectl delete crd meshconfigs.config.aether.io`,
which removes the cluster-scoped `default` CR) before applying the namespaced CRD;
the chart re-seeds a namespaced `default` in the release namespace. Operators with
hand-edited config re-apply it.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
bpalermo
force-pushed
the
feat/namespaced-meshconfig
branch
from
June 22, 2026 21:21
d28c5a7 to
8f6c77c
Compare
bpalermo
added a commit
that referenced
this pull request
Jun 22, 2026
* feat(edge): run the edge in its own aether-ingress namespace The edge is an ingress gateway, not a mesh workload. Move its resources out of the release namespace into a dedicated `aether-ingress` (configurable via edge.namespace; the chart creates it with baseline PSA unless namespaceCreate is false). #266's explicit aether.io/managed=false label keeps it mesh-excluded namespace-agnostically (the CNI plugin no longer skips it by namespace, but the agent's isIgnorablePod still ignores it by label). Edge stays opt-in (edge.enabled default false). - New aether.edge.namespace helper; edge Deployment/Service/ServiceAccount/ ConfigMap/Role+RoleBinding/ClusterSPIFFEID-selector all render into it. - edge-namespace.yaml creates aether-ingress (baseline PSA — the edge is unprivileged, unlike the agent/CNI's privileged control-plane namespace). - edge-meshconfig.yaml seeds a namespaced `default` MeshConfig in aether-ingress with an empty spec: it inherits the control-plane MeshConfig via the controller's fallback (PR #267), so the edge's projected ConfigMap mirrors the mesh by default; operators can edit it for edge-specific observability. - SPIRE: the ClusterSPIFFEID namespaceSelector targets aether-ingress; the PodMeta.Namespace template makes the SVID ns/aether-ingress/sa/aether-edge. - Pass --registrar-address explicitly (release-namespace-correct) since the edge now reaches the registrar cross-namespace and the binary default assumes aether-system. Depends on #267 (namespaced MeshConfig). Chart 0.20.0 -> 0.21.0. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S * docs(edge): correct the managed-label + toleration rationale for the namespace move The edge no longer runs in aether-system, so "the CNI plugin skips aether-system pods" is stale: in its own namespace the plugin calls the agent, which ignores the edge via the managed=false label. Update both comments. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
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.
PR 1 of 2 for moving the edge into its own
aether-ingressnamespace. (PR 2 = the edge chart migration, depends on this.)Why
The edge will live in
aether-ingressand mount a<release>-mesh-configConfigMap — but mounts are namespace-local, and the controller projected the singleton MeshConfig only into the control-plane namespace. Rather than a configured target-namespace list (and two flags), make MeshConfig namespaced and have the controller co-locate the projected ConfigMap with the CR — so there's no namespace setting at all.What
scope: Cluster → Namespaced— onedefaultMeshConfig per namespace.ConfigMap{Name, Namespace: req.Namespace}. TheConfigMapNamespacefield +--mesh-config-namespaceflag are removed.Watches+ a map func overMeshConfigList).ClusterRole+ClusterRoleBinding; leases/events stay a namespacedRole.lookupis namespace-scoped.Tests
effectiveSpec(verbatim in the fallback ns; merge-over-fallback for an override; own-spec when no fallback) andenqueueInheritors(fan-out only on a fallback-ns change).bazel build //...+//controller/...tests green.A CRD's scope can't change in place. Upgrading requires deleting the old cluster-scoped CRD first:
then applying the namespaced CRD; the chart re-seeds a namespaced
defaultin the release namespace. Operators with hand-edited mesh config re-apply it after.