goharbor/harbor · error
unsupported candidate kind: %s
Error message
unsupported candidate kind: %s
What it means
Error "unsupported candidate kind: %s" thrown in goharbor/harbor.
Source
Thrown at src/pkg/retention/dep/client.go:208
default:
return fmt.Errorf("unsupported repository kind: %s", repo.Kind)
}
}
// Deletes the specified candidate
func (bc *basicClient) Delete(candidate *selector.Candidate) error {
if candidate == nil {
return errors.New("candidate is nil")
}
switch candidate.Kind {
case selector.Image:
return bc.coreClient.DeleteArtifact(candidate.Namespace, candidate.Repository, candidate.Digest)
/*
case art.Chart:
return bc.coreClient.DeleteChart(candidate.Namespace, candidate.Repository, candidate.Tag)
*/
default:
return fmt.Errorf("unsupported candidate kind: %s", candidate.Kind)
}
}
View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/pkg/retention/dep/client.go:208 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/d5d38a16a3ded940.
Report an issue: GitHub.