@@ -62,9 +62,6 @@ 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"`
68
65
}
69
66
70
67
type Ownership struct {
@@ -169,11 +166,6 @@ func (ps PortSpec) Equal(other PortSpec) bool {
169
166
return true
170
167
}
171
168
172
- type StorageSpec struct {
173
- Volume string `json:"volume"`
174
- MountPath string `json:"mountPath"`
175
- }
176
-
177
169
// WorkspaceStatus defines the observed state of Workspace
178
170
type WorkspaceStatus struct {
179
171
PodStarts int `json:"podStarts"`
@@ -196,7 +188,8 @@ type WorkspaceStatus struct {
196
188
// +kubebuilder:validation:Optional
197
189
Runtime * WorkspaceRuntimeStatus `json:"runtime,omitempty"`
198
190
199
- VolumeDevice string `json:"volumeDevice,omitempty"`
191
+ Storage StorageStatus `json:"storage,omitempty"`
192
+ VolumeDevice string `json:"volumeDevice,omitempty"`
200
193
201
194
LastActivity * metav1.Time `json:"lastActivity,omitempty"`
202
195
}
@@ -205,6 +198,12 @@ func (s *WorkspaceStatus) SetCondition(cond metav1.Condition) {
205
198
s .Conditions = wsk8s .AddUniqueCondition (s .Conditions , cond )
206
199
}
207
200
201
+ type StorageStatus struct {
202
+ VolumeName string `json:"volumeName"`
203
+ AttachedDevice string `json:"attachedDevice"`
204
+ MountPath string `json:"mountPath"`
205
+ }
206
+
208
207
// +kubebuilder:validation:Enum=Deployed;Failed;Timeout;FirstUserActivity;Closed;HeadlessTaskFailed;StoppedByRequest;Aborted;ContentReady;EverReady;BackupComplete;BackupFailure;Refresh;NodeDisappeared
209
208
type WorkspaceCondition string
210
209
0 commit comments