From 812eb526e0a2b8eb37b447a9c9f5cc0b02e0d627 Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Tue, 2 Dec 2025 03:53:13 +0300 Subject: [PATCH] feat(registry): set artifactType when pushing charts Per HIP-9999 and OCI Image Spec 1.1, set artifactType field in manifest to enable efficient artifact selection from OCI Image Index. Co-Authored-By: Claude Signed-off-by: Aleksei Sviridkin --- pkg/registry/client.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/registry/client.go b/pkg/registry/client.go index f706c5fc7..6b999c5bf 100644 --- a/pkg/registry/client.go +++ b/pkg/registry/client.go @@ -913,10 +913,11 @@ func (c *Client) tagManifest(ctx context.Context, memoryStore *memory.Store, ociAnnotations map[string]string, parsedRef reference) (ocispec.Descriptor, error) { manifest := ocispec.Manifest{ - Versioned: specs.Versioned{SchemaVersion: 2}, - Config: configDescriptor, - Layers: layers, - Annotations: ociAnnotations, + Versioned: specs.Versioned{SchemaVersion: 2}, + ArtifactType: ConfigMediaType, + Config: configDescriptor, + Layers: layers, + Annotations: ociAnnotations, } manifestData, err := json.Marshal(manifest)