-
Notifications
You must be signed in to change notification settings - Fork 37
Stop managing scenario settings #977
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
Conversation
@mdellweg Do you think it's worth writing a template 'migration' to ensure these rules apply on older branches? |
I don't know. I fear at the very moment we need to know this configuration thing, we cannot really know which pulpcore version is going to be installed later... |
can we move the whole storage config into the scenario settings? |
Yes, we can |
e07c051
to
71342e3
Compare
Some settings are not compatible across different scenarios x branches. To not overcomplicate the managing logic here, from now on each branch must define the scenario settings which is approriate for them.
71342e3
to
ce57dc1
Compare
Test PR: pulp/pulpcore#6871 |
Sometimes being explicit is better than trying to be clever. I like this approach. And i think i see it working, because the errors are related to a completely different python 3.11 thing. |
DEFAULT_FILE_STORAGE = "storages.backends.azure_storage.AzureStorage" | ||
AZURE_ACCOUNT_KEY = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" | ||
AZURE_ACCOUNT_NAME = "devstoreaccount1" | ||
AZURE_CONTAINER = "pulp-test" | ||
AZURE_LOCATION = "pulp3" | ||
AZURE_OVERWRITE_FILES = True | ||
AZURE_URL_EXPIRATION_SECS = 120 | ||
AZURE_CONNECTION_STRING = 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ci-azurite:10000/devstoreaccount1;' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to "move" this information into the default template values?
(I know it only helps a newly templated plugin, but it also serves as some sort of documentation.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this actually enables it in the ephemeral catdog plugin of this repository. ;)
42eaae8
to
3d74ca0
Compare
3d74ca0
to
5f4aa46
Compare
DEFAULT_FILE_STORAGE = "storages.backends.azure_storage.AzureStorage" | ||
AZURE_ACCOUNT_KEY = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" | ||
AZURE_ACCOUNT_NAME = "devstoreaccount1" | ||
AZURE_CONTAINER = "pulp-test" | ||
AZURE_LOCATION = "pulp3" | ||
AZURE_OVERWRITE_FILES = True | ||
AZURE_URL_EXPIRATION_SECS = 120 | ||
AZURE_CONNECTION_STRING = 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ci-azurite:10000/devstoreaccount1;' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this actually enables it in the ephemeral catdog plugin of this repository. ;)
Branches should explicitly set their storage configs. See: pulp/plugin_template#977
Branches should explicitly set their storage configs. See: pulp/plugin_template#977
Branches should explicitly set their storage configs. See: pulp/plugin_template#977
Branches should explicitly set their storage configs. See: pulp/plugin_template#977
Branches should explicitly set their storage configs. See: pulp/plugin_template#977 (cherry picked from commit e33cab8)
Branches should explicitly set their storage configs. See: pulp/plugin_template#977 (cherry picked from commit e33cab8)
Branches should explicitly set their storage configs. See: pulp/plugin_template#977 (cherry picked from commit e33cab8)
Branches should explicitly set their storage configs. See: pulp/plugin_template#977 (cherry picked from commit e33cab8)
Branches should explicitly set their storage configs. See: pulp/plugin_template#977
Branches should explicitly set their storage configs. See: pulp/plugin_template#977 (cherry picked from commit f3522f7)
Branches should explicitly set their storage configs. See: pulp/plugin_template#977 (cherry picked from commit f3522f7)
Branches should explicitly set their storage configs. See: pulp/plugin_template#977 (cherry picked from commit f3522f7)
Some settings are not compatible across different scenarios x branches.
To not overcomplicate the managing logic here, from now on each branch
must define the scenario settings which is approriate for them.
Context for storage:
Guides for using storage settings*, based on pulpcore installed:
Case 1)
<3.70
Case 2)
>=3.70,<3.85
Case 3)
>=3.85
*
[legacy storage settings]: based on DEFAULT_FILE_STORAGE
[new storage settings]: based on STORAGES