@@ -62,6 +62,9 @@ type WorkspaceSpec struct {
62
62
63
63
// the XFS quota to enforce on the workspace's /workspace folder
64
64
StorageQuota int `json:"storageQuota,omitempty"`
65
+
66
+ // Storage configures the backing storage for this workspace
67
+ Storage StorageSpec `json:"storageSpec,omitempty"`
65
68
}
66
69
67
70
type Ownership struct {
@@ -166,6 +169,11 @@ func (ps PortSpec) Equal(other PortSpec) bool {
166
169
return true
167
170
}
168
171
172
+ type StorageSpec struct {
173
+ Volume string `json:"volume"`
174
+ MountPath string `json:"mountPath"`
175
+ }
176
+
169
177
// WorkspaceStatus defines the observed state of Workspace
170
178
type WorkspaceStatus struct {
171
179
PodStarts int `json:"podStarts"`
@@ -188,6 +196,8 @@ type WorkspaceStatus struct {
188
196
// +kubebuilder:validation:Optional
189
197
Runtime * WorkspaceRuntimeStatus `json:"runtime,omitempty"`
190
198
199
+ VolumeDevice string `json:"volumeDevice,omitempty"`
200
+
191
201
LastActivity * metav1.Time `json:"lastActivity,omitempty"`
192
202
}
193
203
@@ -244,8 +254,10 @@ const (
244
254
// NodeDisappeared is true if the workspace's node disappeared before the workspace was stopped
245
255
WorkspaceConditionNodeDisappeared WorkspaceCondition = "NodeDisappeared"
246
256
247
- // ThroughputAdjusted is true if the throughput of the workspace volume has been adjusted
248
- WorkspaceConditionThroughputAdjusted WorkspaceCondition = "ThroughputAdjusted"
257
+ // VolumeAttached is true if the workspace's volume has been attached to the node
258
+ VolumeAttached WorkspaceCondition = "VolumeAttached"
259
+ // VolumeMounted is true if the workspace's volume has been mounted on the node
260
+ VolumeMounted WorkspaceCondition = "VolumeMounted"
249
261
)
250
262
251
263
func NewWorkspaceConditionDeployed () metav1.Condition {
0 commit comments