-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support specifying workspace class in gitpod.yml #14257
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
Changes from all commits
f094164
4f23efa
00e36bd
6bc7aae
4a72c3b
aef982b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -309,6 +309,17 @@ | |
| "description": "the hard limit acts as a ceiling for the soft limit. For more details please check https://man7.org/linux/man-pages/man2/getrlimit.2.html" | ||
| } | ||
| } | ||
| }, | ||
| "workspaceRequirements": { | ||
| "type": "object", | ||
| "description": "Configure the requirements of the workspace.", | ||
| "additionalProperties": false, | ||
| "properties": { | ||
| "class": { | ||
| "type": ["string", "array"], | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel this overloaded option makes it unnecessarily complicated. I feel the UX wouldn't suffer much if we always made it a list. Most of the time, I expect customers would be copying this from the docs so it doesn't matter to them if it's a list or just a string. |
||
| "description": "The class that should be used for the workspace." | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Here, we talk about requirements. But when those requirements are not satisfied, we fall back to the default. Under this behaviour, it's no longer a requirement, it's a preference.
Can we change the name to workspacePreferences?
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.
Possibly worth adding info about what happens when no workspace class matches in here as well.