Skip to content

create DigitalOcean region module #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yaodingyd
Copy link

Closes #45
/claim #45

Description

Type of Change

  • New module
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/[namespace]/modules/[module-name]
New version: v1.0.0
Breaking change: [ ] Yes [ ] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun run fmt)
  • Changes tested locally

Related Issues

@bpmct
Copy link
Member

bpmct commented Jul 19, 2025

@yaodingyd - can you please submit of a video of this working in a Coder deployment

display_name: DigitalOcean Region
description: Provides a region selection parameter for DigitalOcean resources
icon: ../../../../.icons/digitalocean.svg
maintainer_github: coder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
maintainer_github: coder

no more needed

Comment on lines +81 to +90
## Variables

| Variable | Type | Default | Description |
| -------------- | -------- | ------------------------------------------------------------ | ---------------------------------------------------------- |
| `default` | `string` | `"ams3"` | The default region to select |
| `mutable` | `bool` | `false` | Whether the region can be changed after workspace creation |
| `name` | `string` | `"region"` | The name of the parameter |
| `display_name` | `string` | `"Region"` | The display name of the parameter |
| `description` | `string` | `"This is the region where your workspace will be created."` | The description of the parameter |
| `icon` | `string` | `"/emojis/1f30e.png"` | The icon to display for the parameter |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this section as we already parse and render Variables on the registry frontend.

Comment on lines +149 to +155
## Benefits

1. **Standardization**: Consistent region selection across all DigitalOcean templates
2. **Maintenance**: Single place to update region options
3. **User Experience**: Better UX with descriptive names and icons
4. **Reliability**: Only includes regions that support required features
5. **Flexibility**: Customizable for different use cases
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Benefits
1. **Standardization**: Consistent region selection across all DigitalOcean templates
2. **Maintenance**: Single place to update region options
3. **User Experience**: Better UX with descriptive names and icons
4. **Reliability**: Only includes regions that support required features
5. **Flexibility**: Customizable for different use cases

Remove this section

| `nyc1` | United States (New York - 1) | 🇺🇸 |
| `nyc3` | United States (New York - 3) | 🇺🇸 |

> **Note**: Some regions (nyc1, sfo1, ams2) are excluded because they do not support volumes, which are commonly used for persistent data storage.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we instead add an additional input to control getting only the regiosn with volumes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create DigitalOcean region module
3 participants