Actions
Story #9488
closedAs an admin I can configure Azure as storage backend for Container Registry
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Azure storage API does not allow to set Content-Type/Content-Disposition headers when redirecting to it.
In order to set content settings per-objects basis, docs suggest to subclass the backend and override AzureStorage.get_object_parameters.
From docs https://django-storages.readthedocs.io/en/latest/backends/azure.html and https://github.com/jschneier/django-storages/blob/master/storages/backends/azure_storage.py#L289 :
Use this to set content settings on all objects. To set these on a per-object basis, subclass the backend and override AzureStorage.get_object_parameters.
This is a Python dict and the possible parameters are: content_type, content_encoding, content_language, content_disposition, cache_control, and content_md5.
Here is WIP PR that needs more work https://github.com/pulp/pulp_container/pull/406#discussion_r719328781
EDIT This approach is slightly problematic in case artifact is used by multiple content units with different content_types.
Actions
Added Azure storage backend support.
closes #9488
Required PR: https://github.com/pulp/pulpcore/pull/1691