goharbor/harbor · error
unsupported repository kind: %s
Error message
unsupported repository kind: %s
What it means
Error "unsupported repository kind: %s" thrown in goharbor/harbor.
Source
Thrown at src/pkg/retention/dep/client.go:173
labels := make([]string, 0)
for _, label := range chart.Labels {
labels = append(labels, label.Name)
}
candidate := &art.Candidate{
Kind: art.Chart,
Namespace: repository.Namespace,
Repository: repository.Name,
Tag: chart.Name,
Labels: labels,
CreationTime: chart.Created.Unix(),
PushedTime: ,
PulledTime: ,
}
candidates = append(candidates, candidate)
}
*/
default:
return nil, fmt.Errorf("unsupported repository kind: %s", repository.Kind)
}
return candidates, nil
}
// DeleteRepository deletes the specified repository
func (bc *basicClient) DeleteRepository(repo *selector.Repository) error {
if repo == nil {
return errors.New("repository is nil")
}
switch repo.Kind {
case selector.Image:
return bc.coreClient.DeleteArtifactRepository(repo.Namespace, repo.Name)
/*
case art.Chart:
return bc.coreClient.DeleteChartRepository(repo.Namespace, repo.Name)
*/
default:
return fmt.Errorf("unsupported repository kind: %s", repo.Kind)View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/pkg/retention/dep/client.go:173 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/4880066e8a4d8d91.
Report an issue: GitHub.