Repository navigation
APICLI-5357: add microvm fork and the fork-id and forked-from list filters - #2157
Merged
kishlay-singh-DO merged 4 commits intoNov 27, 2026
Merged
kishlay-singh-DO merged 4 commits into
kishlay-singh-DO merged 4 commits into
Conversation
…lters doctl compute microvm fork <microvm-id> creates copies of a running or paused MicroVM. The command reports the fork ID, and --wait blocks until every copy is running or has failed. Forking is not idempotent, so the fork request goes through a client with retries off, and a 5xx or transport error points at `doctl compute microvm list --forked-from <id>` instead of the default hint to run the command again. doctl compute microvm list gains --fork-id and --forked-from, and the MicroVM output gains optional ForkID and ForkedFrom columns. godo is pinned to the merge commit of digitalocean/godo#1245 (v1.246.1-0.20261125165214-b34674bdccff), which is not in a tagged release yet. It also brings two hosted-agents changes merged after v1.246.0.
rak16
marked this pull request as ready for review
November 25, 2026 18:28
kishlay-singh-DO
previously approved these changes
Nov 25, 2026
kishlay-singh-DO
approved these changes
Nov 27, 2026
This was referenced Nov 27, 2026
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.
Adds
doctl compute microvm fork <microvm-id>, which creates copies of a running or paused MicroVM, and two list filters for finding the copies afterwards.What changed
doctl compute microvm fork <microvm-id>with--count,--name,--tag,--waitand--wait-timeout. The command reports the fork ID; with--waitit blocks until every copy is running or has failed, and exits non-zero if any copy failed.doctl compute microvm listgains--fork-id(the copies one fork created) and--forked-from(every MicroVM forked from a given MicroVM).ForkIDandForkedFromcolumns, available through--format.--http-retry-maxis set. On a 5xx or transport error the next step points atdoctl compute microvm list --forked-from <id>instead of suggesting the command be run again.godo
Updated to
github.com/digitalocean/godov1.247.0(includes digitalocean/godo#1245).Testing
integration/microvm_fork_test.goruns the built binary against a test server and checks that a fork answered with 502 is sent exactly once.