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
The function capsulev1beta1.GetLimitResourceFromTenant can return an error due to parsing, or because the resource is not limited, and we should do proper error validation.
Actually, we're not discriminating upon the error of parsing the limit for custom resources.
https://github.com/clastix/capsule/blob/8c0c8c653d473ae946b46c1b10c3a1fee10f65ae/pkg/webhook/tenant/custom_resource_quota.go#L79-L81
The function
capsulev1beta1.GetLimitResourceFromTenant
can return an error due to parsing, or because the resource is not limited, and we should do proper error validation.https://github.com/clastix/capsule/blob/8c0c8c653d473ae946b46c1b10c3a1fee10f65ae/api/v1beta1/custom_resource_quota.go#L36-L39
The text was updated successfully, but these errors were encountered: