@@ -195,7 +195,7 @@ func (s *WorkspaceStatus) SetCondition(cond metav1.Condition) {
195
195
s .Conditions = wsk8s .AddUniqueCondition (s .Conditions , cond )
196
196
}
197
197
198
- // +kubebuilder:validation:Enum=Deployed;Failed;Timeout;FirstUserActivity;Closed;HeadlessTaskFailed;StoppedByRequest;Aborted;ContentReady;EverReady;BackupComplete;BackupFailure;Refresh;NodeDisappeared
198
+ // +kubebuilder:validation:Enum=Deployed;Failed;Timeout;FirstUserActivity;Closed;HeadlessTaskFailed;StoppedByRequest;Aborted;ContentReady;EverReady;BackupComplete;BackupFailure;Refresh;NodeDisappeared;ThroughputAdjusted
199
199
type WorkspaceCondition string
200
200
201
201
const (
@@ -243,6 +243,9 @@ const (
243
243
244
244
// NodeDisappeared is true if the workspace's node disappeared before the workspace was stopped
245
245
WorkspaceConditionNodeDisappeared WorkspaceCondition = "NodeDisappeared"
246
+
247
+ // ThroughputAdjusted is true if the throughput of the workspace volume has been adjusted
248
+ WorkspaceConditionThroughputAdjusted WorkspaceCondition = "ThroughputAdjusted"
246
249
)
247
250
248
251
func NewWorkspaceConditionDeployed () metav1.Condition {
@@ -371,6 +374,14 @@ func NewWorkspaceConditionNodeDisappeared() metav1.Condition {
371
374
}
372
375
}
373
376
377
+ func NewWorkspaceConditionThroughputAdjusted () metav1.Condition {
378
+ return metav1.Condition {
379
+ Type : string (WorkspaceConditionThroughputAdjusted ),
380
+ LastTransitionTime : metav1 .Now (),
381
+ Status : metav1 .ConditionTrue ,
382
+ }
383
+ }
384
+
374
385
// +kubebuilder:validation:Enum:=Unknown;Pending;Imagebuild;Creating;Initializing;Running;Stopping;Stopped
375
386
type WorkspacePhase string
376
387
0 commit comments