[flatpak-indexer] Separate quay.io instance #3453
No reviewers
Labels
No labels
ai-review-please
freeze-break-request
post-freeze
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
infra/ansible!3453
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "zlopez/ansible:11543"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is another try to separate the quay.io instance for
flatpak-indexer.
See more info in infra/tickets#11543
Signed-off-by: Michal Konecny mkonecny@redhat.com
AI Code Review
Detailed Code Review
The changes introduce dedicated deployments and configurations for the quay.io instance of
flatpak-indexer, achieving the intended separation. The configuration and structure align well with typical OpenShift deployment patterns.However, there are critical issues in the OpenShift deployment definitions regarding automatic image triggers. The container names specified in the
image.openshift.io/triggersannotations do not match the newly defined container names, which will silently break OpenShift ImageStream auto-deployments for these new workloads. Additionally, there is a risk regarding how the new YAML configuration file is included in the ConfigMap, as it relies on Jinja syntax that may not evaluate correctly depending on howload_fileoperates within the environment.📂 File Reviews
📄 `roles/openshift-apps/flatpak-indexer/templates/deployment.yml.j2` - Adds two new deployments for `flatpak-quay-indexer` and `flatpak-indexer-quay-differ` with their corresponding volumes and mounts.
image.openshift.io/triggersannotation (flatpak-indexer) does not match the actual container name (flatpak-quay-indexer). This mismatch will cause OpenShift to fail to automatically update the container image when a new tag is pushed.flatpak-indexer-differbut the container is namedflatpak-indexer-quay-differ. The image trigger will fail to locate the container.📄 `roles/openshift-apps/flatpak-indexer/templates/configmap.yml.j2` - Introduces a new ConfigMap `indexer-quay-config` using content from `config.quay.yaml`.
load_file(). Ifload_file()only reads the raw file content, the Jinja variables insideconfig.quay.yaml(such as{% if env == 'staging' %}and loops) will NOT be processed and will be injected directly as text, corrupting the YAML. Ensure that the inclusion method evaluates Jinja inside the imported file.load_filedoes not evaluate Jinja, use Ansible's standardlookup('template', ...)to render it before inclusion.Questions:
load_file()in your Ansible environment evaluate Jinja expressions inside the file being read?✅ Summary
image.openshift.io/triggersannotations for both new Deployments.config.quay.yamlcorrectly processes Jinja templates rather than importing them as raw strings.🤖 AI Code Review | Generated with ai-code-review | Model:
gemini-3.1-pro-preview⚠️ AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.
b9a7675c473f29b12df6