feat(coder-labs): add GCP disk snapshot module#702
Draft
blinkagent[bot] wants to merge 4 commits intomainfrom
Draft
feat(coder-labs): add GCP disk snapshot module#702blinkagent[bot] wants to merge 4 commits intomainfrom
blinkagent[bot] wants to merge 4 commits intomainfrom
Conversation
This module provides disk snapshot functionality for Coder workspaces running on GCP: - Automatic snapshots when workspaces are stopped - Configurable retention (default: 3 snapshots) - User parameter to select from available snapshots - Defaults to newest snapshot on workspace start - Automatic cleanup of old snapshots beyond retention - Uses GCP labels for workspace/owner filtering Co-authored-by: M Atif Ali <matifali@coder.com>
- Remove external/gcloud CLI dependency - Use rotating snapshot slots (1-3) for predictable naming - Add fake credentials for CI testing - Simplify design: slots are reused round-robin - Update README with new approach - Fix prettier formatting
- Remove rotating slots, use single snapshot
- Snapshot name: {owner}-{workspace}-snapshot
- Overwrites on each workspace stop
- Remove snapshot_retention_count variable
- Simpler user choice: restore or fresh
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
This PR adds a new GCP disk snapshot module to the
coder-labsnamespace that provides disk snapshot functionality for Coder workspaces running on GCP Compute Engine.Features
How It Works
{owner}-{workspace}-snapshotUsage
Requirements
compute.snapshots.create,compute.snapshots.delete,compute.snapshots.getroles/compute.storageAdminCreated on behalf of @matifali