From ec96af9a82c0da28bcf10a71f7ed10b79eae02d4 Mon Sep 17 00:00:00 2001 From: water <672684719@qq.com> Date: Mon, 17 Aug 2026 03:45:00 +0000 Subject: [PATCH] fix(registry): accept OCI Image Index in plugin pull Allow plugin pull to resolve tags that point to an OCI Image Index, matching the fix already applied to chart pull in PR #31776. Closes #32541 Signed-off-by: water <672684719@qq.com> --- pkg/registry/plugin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/registry/plugin.go b/pkg/registry/plugin.go index 959faaa7d..ef9887d30 100644 --- a/pkg/registry/plugin.go +++ b/pkg/registry/plugin.go @@ -62,6 +62,7 @@ func (c *Client) PullPlugin(ref string, pluginName string, options ...PluginPull genericResult, err := genericClient.PullGeneric(ref, GenericPullOptions{ // Allow manifests and all layer types - we'll validate artifact type after download AllowedMediaTypes: []string{ + ocispec.MediaTypeImageIndex, ocispec.MediaTypeImageManifest, "application/vnd.oci.image.layer.v1.tar", "application/vnd.oci.image.layer.v1.tar+gzip",