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
Move scaling quota check to base BYOC provider (#1083)
* Move scaling quota check to base BYOC provider
* Update src/pkg/cli/client/byoc/baseclient.go
Co-authored-by: Jordan Stephens <[email protected]>
* rename quota to policy to be more encompassing of quotas and access
* update naming of storage of user CanIUse values
---------
Co-authored-by: Eric Liu <[email protected]>
Co-authored-by: Jordan Stephens <[email protected]>
Co-authored-by: Eric Liu <[email protected]>
term.Warnf("Defang cannot monitor status of the following managed service(s): %v.\n To check if the managed service is up, check the status of the service which depends on it.", managedServices)
107
107
}
108
108
109
-
numGPUS:=compose.GetNumOfGPUs(ctx, project)
110
-
ifnumGPUS>0 {
111
-
req:=&defangv1.CanIUseRequest{
112
-
Project: project.Name,
113
-
Provider: providerID.EnumValue(),
114
-
}
115
-
116
-
resp, err:=client.CanIUse(ctx, req)
117
-
iferr!=nil {
118
-
returnerr
119
-
}
120
-
121
-
if!resp.Gpu {
122
-
returnErrNoPermission("usage of GPUs. Please upgrade on https://s.defang.io/subscription")
0 commit comments