feat: add registry k8s manifest fallback

This commit is contained in:
2026-03-23 16:55:20 +08:00
parent 9c85b9b097
commit 442c27a26d
4 changed files with 430 additions and 5 deletions

View File

@@ -87,6 +87,10 @@ func manifestFallbackPath(ctx *hooks.RequestContext, clean string) (string, bool
return "/v2/" + repo + "/" + repo + rest, true
}
func RegistryK8sManifestFallbackPath(ctx *hooks.RequestContext, clean string) (string, bool) {
return manifestFallbackPath(ctx, clean)
}
func splitDockerRepoPath(path string) (string, string, bool) {
if !strings.HasPrefix(path, "/v2/") {
return "", "", false