Allow resizing hibernated droplets by modifying the size tag#34
Open
Allow resizing hibernated droplets by modifying the size tag#34
Conversation
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.
Summary
dropkit resize <name>now works on hibernated droplets by swapping thesize:tag on the snapshot, so the nextwakecreates the droplet with the new size. No need to wake, resize, and re-hibernate.untag_resourceAPI method — addsDELETE /tags/{tag}/resourcessupport to complement the existingtag_resource.find_user_dropletreturn type — always returns the username (neverNone), simplifying error handling across 8+ call sites that no longer needusernamenull checks.dropkit listnow shows both the droplet size slug and image size for hibernated snapshots..coveragefile, adds it to.gitignore.How it works
When resizing a hibernated snapshot:
size:<slug>tag on the snapshotsize:<new>tag first, then removes the oldsize:<old>tag (crash-safe ordering)Test plan
_resize_hibernated_snapshot(no ID, no size tag, same size, successful swap, cancelled, invalid size)untag_resourceAPI methodcomplete_droplet_or_snapshot_name(combines sources, deduplicates, ordering)dropkit resize <hibernated-name>prompts interactively and updates tagdropkit resize <hibernated-name> -s s-2vcpu-4gbupdates tag non-interactivelydropkit listshows droplet size column for hibernated snapshotsdropkit wake <name>uses updated size after resize🤖 Generated with Claude Code