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 <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
pull/31583/head
Aleksei Sviridkin 4 weeks ago
parent 60172f8445
commit 812eb526e0
No known key found for this signature in database
GPG Key ID: 7988329FDF395282

@ -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)

Loading…
Cancel
Save