Skip to content

Support multiple destination registries#6077

Open
Zlopez wants to merge 2 commits intofedora-infra:developfrom
Zlopez:flatpak
Open

Support multiple destination registries#6077
Zlopez wants to merge 2 commits intofedora-infra:developfrom
Zlopez:flatpak

Conversation

@Zlopez
Copy link
Contributor

@Zlopez Zlopez commented Feb 4, 2026

With the move of flatpaks from registry.fedoraproject.org to quay.io (see https://forge.fedoraproject.org/infra/tickets/issues/11543 for more details) we want the bodhi to support uploading to multiple registries.

This PR changes the container.destination_registry to list and when copying from candidate registry it copies to all the destinations.

@Zlopez Zlopez requested a review from a team as a code owner February 4, 2026 14:16
With the move of flatpaks from registry.fedoraproject.org to
quay.io (see https://forge.fedoraproject.org/infra/tickets/issues/11543
for more details) we want the bodhi to support uploading to multiple
registries.

This PR changes the container.destination_registry to list and when
copying from candidate registry it copies to all the destinations.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
@Zlopez
Copy link
Contributor Author

Zlopez commented Feb 9, 2026

I think this is ready for review now. I can see the integration tests are failing on the same issue in other PRs as well and the readthedocs build seems completely unrelated to the changes.

'container.destination_registry': {
'value': 'registry.fedoraproject.org',
'validator': str},
'value': ['registry.fedoraproject.org', 'quay.io/fedora/flatpak'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Production bodhi configuration in ansible just uses the defaults, so I'm unsure if we want to change these... maybe it's better to just change the value to a list with only registry.fp.o.

For staging bodhi the value is set to

{% if env == 'staging' %}
container.destination_registry = registry.stg.fedoraproject.org
container.source_registry = candidate-registry.stg.fedoraproject.org
{% endif %}

shall we use 'quay.io/fedora/flatpak' or is there any staging destination?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a staging target quay.io/fedora-testing/flatpak, I can use this.

@@ -0,0 +1 @@
Support multiple destination registries for containers
Copy link
Contributor

Choose a reason for hiding this comment

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

better use the suffix .bic (backward incompatible change) for the file and specify in the notes that the container.destination_registry setting can now be specified as whitespace separated list of values

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do, it makes sense.

* Only use registry.fedoraproject.org for default config
* Mark the change as backwards incompatible and add note

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
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