Skip to content

Blob and location needs to be media type aware #564

@Skarlso

Description

@Skarlso

What happened:

This is a missing feature on the blob and the Location type in the Plugin.

What you expected to happen:

Right now, if upload with helm is done, it's an octet-stream because it's not setting the MediaType on the blob during upload.

How to reproduce it (as minimally and precisely as possible):

Upload a Component Version with ocm add cv or via Library to the Remote Repository with the helm plugin. Then, do ocm get cv -oyaml and observe the localBlob type instead of being uploaded as oci artifact

Anything else we need to know:

This needs to be adjusted and pull through the environment. If media type is set, use .(MediaTypeAware) and use the media type to pass in to the Location in the Helm input method. Once it's done, the Blob upload needs to apply it correctly so we have a helm type. The right MediaType can be fetched from the blob then.

Environment:

Metadata

Metadata

Assignees

Labels

area/ipceiImportant Project of Common European Interestkind/bugfixBug

Type

No fields configured for Bug.

Projects

Status
🍺 Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions