goharbor/harbor · error
resource %s not support
Error message
resource %s not support
What it means
Error "resource %s not support" thrown in goharbor/harbor.
Source
Thrown at src/controller/quota/driver/project/project.go:92
if !ok {
return nil, fmt.Errorf("bad result for project: %s", key)
}
return dr.QuotaRefObject{
"id": project.ProjectID,
"name": project.Name,
"owner_name": project.OwnerName,
}, nil
}
func (d *driver) Validate(hardLimits types.ResourceList) error {
resources := map[types.ResourceName]bool{
types.ResourceStorage: true,
}
for resource, value := range hardLimits {
if !resources[resource] {
return fmt.Errorf("resource %s not support", resource)
}
if err := lib.ValidateQuotaLimit(value); err != nil {
return err
}
}
for resource := range resources {
if _, found := hardLimits[resource]; !found {
return fmt.Errorf("resource %s not found", resource)
}
}
return nil
}
func (d *driver) CalculateUsage(ctx context.Context, key string) (types.ResourceList, error) {
projectID, err := strconv.ParseInt(key, 10, 64)View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/controller/quota/driver/project/project.go:92 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16).
Data as JSON: /api/errors/9b2244d41ec2e1da.
Report an issue: GitHub.