@@ -203,7 +203,7 @@ type StorageStatus struct {
203
203
MountPath string `json:"mountPath"`
204
204
}
205
205
206
- // +kubebuilder:validation:Enum=Deployed;Failed;Timeout;FirstUserActivity;Closed;HeadlessTaskFailed;StoppedByRequest;Aborted;ContentReady;EverReady;BackupComplete;BackupFailure;Refresh;NodeDisappeared
206
+ // +kubebuilder:validation:Enum=Deployed;Failed;Timeout;FirstUserActivity;Closed;HeadlessTaskFailed;StoppedByRequest;Aborted;ContentReady;EverReady;BackupComplete;BackupFailure;Refresh;NodeDisappeared;ThroughputAdjusted
207
207
type WorkspaceCondition string
208
208
209
209
const (
@@ -257,6 +257,8 @@ const (
257
257
VolumeAttached WorkspaceCondition = "VolumeAttached"
258
258
// VolumeMounted is true if the workspace's volume has been mounted on the node
259
259
VolumeMounted WorkspaceCondition = "VolumeMounted"
260
+ // ThroughputAdjusted is true if the throughput of the workspace volume has been adjusted
261
+ WorkspaceConditionThroughputAdjusted WorkspaceCondition = "ThroughputAdjusted"
260
262
)
261
263
262
264
func NewWorkspaceConditionDeployed () metav1.Condition {
@@ -385,6 +387,14 @@ func NewWorkspaceConditionNodeDisappeared() metav1.Condition {
385
387
}
386
388
}
387
389
390
+ func NewWorkspaceConditionThroughputAdjusted () metav1.Condition {
391
+ return metav1.Condition {
392
+ Type : string (WorkspaceConditionThroughputAdjusted ),
393
+ LastTransitionTime : metav1 .Now (),
394
+ Status : metav1 .ConditionTrue ,
395
+ }
396
+ }
397
+
388
398
// +kubebuilder:validation:Enum:=Unknown;Pending;Imagebuild;Creating;Initializing;Running;Stopping;Stopped
389
399
type WorkspacePhase string
390
400
0 commit comments