Skip to content

Conversation

@benodiwal
Copy link
Collaborator

Closes #629

Adds the update_swarm() method to update a swarm's configuration.
The UpdateSwarmOptions struct allows specifying:
- version: Required version number to avoid conflicting writes
- rotate_worker_token: Rotate the worker join token
- rotate_manager_token: Rotate the manager join token
- rotate_manager_unlock_key: Rotate the manager unlock key

The integration test is combined into the existing swarm_test to avoid
race conditions when multiple swarm tests run in CI.

Co-Authored-By: Satish Rathod <[email protected]>
@benodiwal benodiwal force-pushed the feature/swarm-update branch from 12ea79c to 3aaf9e1 Compare December 25, 2025 14:01
@benodiwal benodiwal force-pushed the feature/swarm-update branch 3 times, most recently from 10a6785 to e0869b6 Compare December 25, 2025 19:46
@benodiwal benodiwal force-pushed the feature/swarm-update branch from e0869b6 to 0ebd7a6 Compare December 25, 2025 19:49
@fussybeaver
Copy link
Owner

This looks ready to merge, please rebase and merge freely

@benodiwal benodiwal merged commit 6fc7722 into fussybeaver:master Dec 28, 2025
16 checks passed
@benodiwal benodiwal modified the milestone: v0.20.0 Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement SwarmUpdate API

2 participants