← All posts

Deleting the manager doesn't make it let go

A wall of glowing cyan grid cells standing on a dark circuit-traced floor, a translucent magenta hand gripping a small cluster of cells that have turned magenta while a cyan beam strikes them in a burst of sparks

This is my homelab: single-node Kubernetes clusters on Talos, one operator, Cilium as the CNI on every cluster and ArgoCD as the reconciler. Nothing here describes an employer's systems. The ownership records quoted were read on the lab's clusters on the dates given; the mechanism is Kubernetes server-side apply as documented upstream.

Uninstall a tool and its hold on your objects goes with it. That is the belief most of us carry into a migration between configuration managers: the old one is gone, so the new one is in charge.

Under server-side apply the API server keeps a land register. Every field of every object carries the name of every manager that has set it to its current value, in metadata.managedFields, and deleting a tool's paperwork does not touch that register. The tenant has moved out. Its name is still on the deeds. On my clusters that cost a datapath flip that applied cleanly and never landed, a story the Cilium migration post tells in full. This post is about the other half: how the deeds change hands on purpose.

Diagram in two rows. Orphaned by deleting the release record: the Helm release record is deleted, the config map's fields still list helm as their manager, and a later apply leaves the value where it was. Taken deliberately: a server-side diff lists every field about to change hands, a forced server-side apply under the manager that will keep the object takes them, and a read-back shows the value moved and talos now owns it

Read the register before you blame the manifest

The query is one line, and the names it prints are rarely the ones you expect.

kubectl -n kube-system get cm cilium-config \
  -o jsonpath='{range .metadata.managedFields[*]}{.manager}{" "}{.operation}{"\n"}{end}'
# one line per manager holding fields on the object; helm against Update is the evicted tenant

When I read the register on 2 November 2026, helm still held fields on every Cilium DaemonSet, Deployment and cilium-config across the three clusters that were online. No Helm release record had existed anywhere in the fleet since July. Helm was not the only surprise tenant, either. Two of ArgoCD's ConfigMaps, whose data I had once applied by hand, listed kubectl-client-side-apply as their owner when I checked them in September: a manager I had never thought of as a manager at all.

A name in the register matters even after its tool has gone. A plain server-side apply that changes a field another manager holds stops with a conflict, and the field stays where it is until somebody forces the issue. Why my CNI flip reported nothing, where a conflict would have been honest, comes down to how the node's own machinery applies its manifests, and that is a separate story. The register showed the fact that mattered: the field was not mine to change.

Read the transfer before you sign it

Taking the fields back is a server-side apply of the full render with conflicts forced, made as the manager that will keep the object. It is the command in the migration post, and it is a transfer of deeds. The apply claims every field the render declares. Where another manager holds the same value, the two share the deed, which is why helm was still on the register in November; where the value differs, force takes the field and writes the render's value, whoever held it. A hand fix on a declared field is overwritten without a word. A shared deed has a later cost: when the keeper drops a field from its render, server-side apply removes the field only if no other manager owns it, so helm's share keeps it alive.

So the transfer gets read before it is signed:

kubectl -n kube-system diff --server-side --force-conflicts --field-manager=talos -f cilium-render.yaml
# each hunk is a field about to change value as it changes hands; a hunk you cannot name is a reason to stop

cilium-render.yaml is the helm template output of the committed values, with the Secret and Namespace documents stripped. The diff asks the server what the forced apply would leave behind, so its hunks are the fields whose value will change. A field where both managers already agree shows no hunk, and kubectl hides managedFields unless you add --show-managed-fields, so the shared deeds stay out of sight. The one hand fix I knew about, a Service field the chart cannot express, is in the render on one cluster. On the other two it is still a hand patch owned by kubectl-patch, and a read of the register on 1 December is how I found that.

Then the apply, and then two reads, because the exit code proved nothing the first time and earns no more trust the second. kube-proxy-replacement in cilium-config reads true, and the register shows talos against Apply on that field.

Sign under the name that will keep the house

--field-manager is the signature on the deed, and it has to be the name the keeper writes under. Force under an ad-hoc name and the deeds pass to a tenant who never comes back: the next ghost, installed by hand.

The keeper's name is not always the one you would guess. ArgoCD's controller runs as a workload called argocd-application-controller, and on ArgoCD 3.5.3 its server-side applies are signed argocd-controller. A pre-upgrade diff I ran on 7 October 2026 under the workload's name came back as conflicts, and the same wrong name made it into written plans in November; review caught one. Read the name off objects the keeper already owns:

kubectl --context admin@elfastc -n cert-manager get deploy \
  -o jsonpath='{range .items[*].metadata.managedFields[*]}{.manager}{" "}{.operation}{"\n"}{end}' | sort -u
# argocd-controller against Apply is the name ArgoCD's sync writes under; diff and apply as that one, never a guess

The principle

A migration between configuration managers is not finished when the old tool is uninstalled. It is finished when the register names the new owner against every field, and any field the old name still shares is one you chose to leave shared. Getting there is a conveyance in four steps: read the register, read the transfer, sign under the keeper's name, read the register again. Three of them are reads. The one write is safe only because of the reads on either side of it.

Moving out empties the flat. Only the register says who owns it.

Read on the lab's three online clusters on 2026-11-02: helm still listed against Update on every Cilium DaemonSet, Deployment and cilium-config, with no Helm release record anywhere since July. Helm shares each deed while its value still matches; the forced apply under talos takes it the day the value changes.

Read next