-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ws-manager] Introduce workspace classes #9238
Conversation
3170c6f
to
f357539
Compare
3c321ae
to
84e7cb5
Compare
/werft run 👍 started the job as gitpod-build-cw-ws-class.7 |
3c1dd5f
to
f3b5c4a
Compare
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.
nit picks
return xerrors.Errorf("workspace class %s: %w", name, err) | ||
} | ||
} | ||
|
||
return err |
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.
Is this redundant return? Should we return nil here?
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.
LGTM, except for the naming nit!
@@ -58,6 +61,22 @@ type WorkspaceConfig struct { | |||
PasswordSecret string `json:"passwordSecret"` | |||
} `json:"redisCache"` | |||
} `json:"registryFacade"` | |||
|
|||
WorkspaceClasses map[string]WorkspaceClass `json:"classes,omitempty"` |
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.
TIOLI: Shouldn't the json
field be workspaceClasses
? as classes
seems a bit ambiguous? 🤔
Description
This PR adds support for workspace classes. Workspace classes add per-workspace support for different resource requests and limits, as well as different templates.
Related Issue(s)
works on #8261
How to test
See unit tests
Release Notes