-
Notifications
You must be signed in to change notification settings - Fork 391
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
📝 Mount API POC #3232
base: main
Are you sure you want to change the base?
📝 Mount API POC #3232
Changes from all commits
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 |
---|---|---|
|
@@ -116,6 +116,12 @@ type WorkspaceTypeSpec struct { | |
// | ||
// +optional | ||
DefaultAPIBindings []APIExportReference `json:"defaultAPIBindings,omitempty"` | ||
|
||
// Mount is the mount configuration for the workspace type. Single type can have only one mount kind. | ||
// If set, the workspace will be backed by a mount. | ||
// | ||
// +optional | ||
Mount *metav1.TypeMeta `json:"mount,omitempty"` | ||
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. how is this related to workspace types? 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. This would be something like But if we keep Kind of mount object inside workspace spec, workspace Type is not even used. maybe at the workspace level: 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. something like:
Would become:
and
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. In my mind type and mount are mutual exclusive, i.e. WorkspaceTypes are actually LogicalClusterTypes. 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. So do you think its root level new field in Workspace? Any suggestions how this could be named considering type is taken? :) Or just |
||
} | ||
|
||
// APIExportReference provides the fields necessary to resolve an APIExport. | ||
|
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.
Doesn't this need some higher-level CEL rule to make it mutual exclusive and bound to type?