@@ -188,13 +188,21 @@ type WorkspaceStatus struct {
188
188
// +kubebuilder:validation:Optional
189
189
Runtime * WorkspaceRuntimeStatus `json:"runtime,omitempty"`
190
190
191
+ Storage StorageStatus `json:"storage,omitempty"`
192
+
191
193
LastActivity * metav1.Time `json:"lastActivity,omitempty"`
192
194
}
193
195
194
196
func (s * WorkspaceStatus ) SetCondition (cond metav1.Condition ) {
195
197
s .Conditions = wsk8s .AddUniqueCondition (s .Conditions , cond )
196
198
}
197
199
200
+ type StorageStatus struct {
201
+ VolumeName string `json:"volumeName"`
202
+ AttachedDevice string `json:"attachedDevice"`
203
+ MountPath string `json:"mountPath"`
204
+ }
205
+
198
206
// +kubebuilder:validation:Enum=Deployed;Failed;Timeout;FirstUserActivity;Closed;HeadlessTaskFailed;StoppedByRequest;Aborted;ContentReady;EverReady;BackupComplete;BackupFailure;Refresh;NodeDisappeared;ThroughputAdjusted
199
207
type WorkspaceCondition string
200
208
@@ -244,6 +252,11 @@ const (
244
252
// NodeDisappeared is true if the workspace's node disappeared before the workspace was stopped
245
253
WorkspaceConditionNodeDisappeared WorkspaceCondition = "NodeDisappeared"
246
254
255
+ VolumeAttachRequest WorkspaceCondition = "VolumeAttachRequest"
256
+ // VolumeAttached is true if the workspace's volume has been attached to the node
257
+ VolumeAttached WorkspaceCondition = "VolumeAttached"
258
+ // VolumeMounted is true if the workspace's volume has been mounted on the node
259
+ VolumeMounted WorkspaceCondition = "VolumeMounted"
247
260
// ThroughputAdjusted is true if the throughput of the workspace volume has been adjusted
248
261
WorkspaceConditionThroughputAdjusted WorkspaceCondition = "ThroughputAdjusted"
249
262
)
0 commit comments