You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 007545e
Browse filesBrowse the repository at this point in the historyBrowse files
return0, nil, fmt.Errorf("assertion failed: CoderControlPlane %s has no defaulted maxWorkspaces for Coder user %s", controlPlane.Name, pool.Status.Resolved.OwnerID)
272
+
}
273
+
return*owner.MaxWorkspaces, nil, nil
274
+
}
275
+
246
276
// createMembers creates current members while all caps hold (plan 6.3 step
247
277
// 7): current unclaimed members fewer than spec.replicas, building members
248
278
// fewer than spec.maxInFlight, the owner's live members on this control
249
-
// plane fewer than maxWorkspaces, and the failure backoff passed. It returns
250
-
// the wait that stops it, if any, and when to read again.
279
+
// plane fewer than maxWorkspaces (from an uncached read), and the failure
280
+
// backoff passed. It returns the wait that stops it, if any, and when to
returnnil, 0, fmt.Errorf("assertion failed: CoderControlPlane %s has no defaulted maxWorkspaces for Coder user %s", controlPlane.Name, st.Resolved.OwnerID)
285
-
}
286
-
maxWorkspaces:=*owner.MaxWorkspaces
300
+
// The count comes from the uncached list, so two pools on a stale cache
returnnil, fmt.Errorf("assertion failed: CoderControlPlane %s has no defaulted maxWorkspaces for Coder user %s after the consent check", controlPlane.Name, member.Spec.OwnerID)
302
+
ifowner.MaxWorkspaces==nil {
303
+
returnnil, fmt.Errorf("assertion failed: CoderControlPlane %s has no defaulted maxWorkspaces for Coder user %s", controlPlane.Name, member.Spec.OwnerID)
0 commit comments