Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new storage cache config option #68

Merged
merged 6 commits into from
Mar 11, 2024
Merged

new storage cache config option #68

merged 6 commits into from
Mar 11, 2024

Conversation

kwmonroe
Copy link
Contributor

@kwmonroe kwmonroe commented Mar 9, 2024

LP:2049360

This PR provides a new config option storage-cache that can be used to switch between 'redis' and 'inmemory' cache types:

https://distribution.github.io/distribution/about/configuration/#cache

More important for the linked bug, any other value will disable the cache altogether.

I've also added a unit test for this option, though this charm could use a lot more help in the coverage department :/

@kwmonroe kwmonroe force-pushed the lp2049360/cache-config branch from 8c5bd20 to e832ad1 Compare March 9, 2024 20:39
@kwmonroe kwmonroe force-pushed the lp2049360/cache-config branch from e832ad1 to e918b9e Compare March 9, 2024 21:23
Copy link
Member

@mateoflorido mateoflorido left a comment

Choose a reason for hiding this comment

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

Have a couple of questions

config.yaml Outdated Show resolved Hide resolved
lib/charms/layer/docker_registry.py Outdated Show resolved Hide resolved
Copy link
Member

@mateoflorido mateoflorido left a comment

Choose a reason for hiding this comment

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

LGTM!

@kwmonroe kwmonroe merged commit 5cfdde3 into master Mar 11, 2024
7 checks passed
@kwmonroe kwmonroe deleted the lp2049360/cache-config branch March 11, 2024 22:45
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.

2 participants