Repository navigation
Conversation
The operator still only attaches to a Garage that something else deployed. A node leaves the layout only when it is listed in spec.removedNodes, since otherwise a node removed by hand would get its role back at the next resync. Assisted-by: Claude:claude-opus-5-5
stplasim
marked this pull request as draft
November 18, 2026 17:50
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.
The
GarageClusternow manages the layout of a Garage cluster with any number of nodes. It still only attaches to a Garage that something else deployed, through the Admin API, so it works with the AboutBits chart, the official chart or any other setup.Spec and status
spec.minNodes: the first layout waits until this many nodes are connected, so all of them get their role in one layout version.spec.zoneRedundancy:maximumor a number of zones. If it is not set, Garage's own value is left as it is.spec.removedNodes: node ids to take out of the layout. A node is removed only when it is listed here. Otherwise a node removed by hand would get its role back at the next resync.status.nodeslists each node with its id, hostname,up,draining, zone and capacity. It replacesstatus.nodeId.Reconcile flow
spec.layout. A role changed by hand is reset.PreviewClusterLayoutChangesand only then applied. If Garage rejects them, they are reverted withRevertClusterLayoutand the resource goes toERRORwith Garage's message. Nothing stays staged.PENDINGand writes nothing. BothGetClusterStatusandGetClusterLayoutare checked.draining: trueright away. While a node drains, the status is refreshed every 15 seconds, so it tells when the node can be shut down. Garage can take minutes for the handover.Test cluster
A three-node Garage runs as a Compose Dev Services profile next to the single node.
GarageClusterMultiNodeTestruns against it.Upgrading
The legacy
status.nodeIdstill counts for the check that no otherGarageClustermanages the same Garage. It is cleared at the first reconcile, so existing single-node resources need no change.Not verified
Checkstyle could not run locally, because the shared config needs GitHub Packages credentials.
🤖 Generated with Claude Code