mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
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>
This commit is contained in:
parent
60172f8445
commit
812eb526e0
1 changed files with 5 additions and 4 deletions
|
|
@ -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…
Reference in a new issue