Skip to content

Add support for transfer_config in S3 domain serializer#5252

Merged
mdellweg merged 1 commit into
pulp:mainfrom
gerrod3:storage-create
Apr 16, 2024
Merged

Add support for transfer_config in S3 domain serializer#5252
mdellweg merged 1 commit into
pulp:mainfrom
gerrod3:storage-create

Conversation

@gerrod3

@gerrod3 gerrod3 commented Apr 13, 2024

Copy link
Copy Markdown
Contributor

This change will also allow me to add GCP support for domains since the credentials setting requires a Google object.

@gerrod3 gerrod3 force-pushed the storage-create branch 2 times, most recently from 4db1373 to d96e2f4 Compare April 13, 2024 00:14
from .fields import EncryptedJSONField

# Global used to store instantiated storage classes to speed up lookups across domains
storages = {}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a per worker in memory cache, right? So a bit like lru_cache just with the last update check.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that is correct. Since get_storage is called everytime an artifact is saved/read, it makes sense to have a cache to speed up the access.

Comment thread pulpcore/app/serializers/domain.py Outdated
Comment thread pulpcore/app/serializers/domain.py Outdated
Comment thread CHANGES/4592.misc Outdated
@mdellweg mdellweg enabled auto-merge (rebase) April 15, 2024 15:13
@mdellweg mdellweg merged commit ac3acbf into pulp:main Apr 16, 2024
@gerrod3 gerrod3 deleted the storage-create branch April 17, 2024 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants