-
Notifications
You must be signed in to change notification settings - Fork 37
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
base: main
Are you sure you want to change the base?
Conversation
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maintainer_github: coder |
no more needed
## 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 | |
There was a problem hiding this comment.
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.
## 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 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. |
There was a problem hiding this comment.
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?
Closes #45
/claim #45
Description
Type of Change
Module Information
Path:
registry/[namespace]/modules/[module-name]
New version:
v1.0.0
Breaking change: [ ] Yes [ ] No
Testing & Validation
bun test
)bun run fmt
)Related Issues