cloud-image-uploader: Fix routing key for AMQP binding

env renders to "production" which is not what messages are published
under ("prod"). Match what other apps are doing and just use a wildcard
so it'll match anything. Since prod and stage are separate brokers this
is fine.
This commit is contained in:
Jeremy Cline 2024-04-17 11:10:46 -04:00
parent 8541e8980b
commit 79935add66
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@
username: "cloud-image-uploader{{ env_suffix }}" username: "cloud-image-uploader{{ env_suffix }}"
queue_name: "cloud-image-uploader{{ env_suffix }}" queue_name: "cloud-image-uploader{{ env_suffix }}"
routing_keys: routing_keys:
- "org.fedoraproject.{{ env }}.buildsys.build.state.change" - "org.fedoraproject.*.buildsys.build.state.change"
thresholds: thresholds:
warning: 10 warning: 10
critical: 50 critical: 50

View file

@ -19,7 +19,7 @@ app_contacts_email = "cloud@lists.fedoraproject.org"
[[bindings]] [[bindings]]
queue = "cloud-image-uploader{{ env_suffix }}" queue = "cloud-image-uploader{{ env_suffix }}"
exchange = "amq.topic" exchange = "amq.topic"
routing_keys = ["org.fedoraproject.{{ env }}.buildsys.build.state.change"] routing_keys = ["org.fedoraproject.*.buildsys.build.state.change"]
[queues."cloud-image-uploader{{ env_suffix }}"] [queues."cloud-image-uploader{{ env_suffix }}"]
durable = true durable = true