Skip to content

Concept

Pivot model

A pivot moves the operator and its state to another cluster, like clusterctl move in Cluster API. All state is API objects, so the move is a copy of objects in a fixed sequence. No machine changes.

The copy sequence: ConfigMaps and Secrets, then Assets and profiles, then Hosts, then HostClaims and HostOperations, then Talos objects and windows, then all other kinds of the two groups.1 SecretsConfigMaps2 Assetsprofiles, MEs3 HostsclaimRef4 Claimsoperations5 Taloswindows6 Othersrollouts, backups
Owners and referenced objects go first. A second pass fills owners that come later.

Events, the leader lease, service account tokens, imager Jobs and the files in the media store. The target builds missing installers again. The workload clusters do not move, because they do not depend on the operator.

UIDs
Each object gets a new UID. The move writes the new UID into spec.claimRef.uid, into the claim label of operations and into owner references.
Identities
The move writes each operation as its proposer and replays each approval as the person who gave it, so the admission policy accepts them.
Status
The move copies status under the name of the controller that owns each part. The hand-off record of a claim moves too, so no machine installs again.
Markers
Annotations on the namespace pk-metal: pivoted-to and pivot-replicas on the source, pivot-source on the target. They make a second run continue.