mdapi: fix image trigger annote order on deploy metadata #3338
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
infra/ansible!3338
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "t0xic0der/ansible:dpmt"
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?
The
image.openshift.io/triggersannotation was on the pod template metadatainstead of the deployment metadata, so OpenShift's image trigger controller
never detected ImageStream updates for auto-rollout.
Basically, when the MDAPI playbook was re-executed after the repository
fedora-infra/ansiblewas moved from Pagure to Forgejo, we have not had evena single rollout, even with all the image builds.
Signed-off-by: Akashdeep Dhar akashdeep.dhar@gmail.com
@kevin @zlopez could you please take a look? TIA.
AI Code Review
Detailed Code Review
The changes correctly move the
image.openshift.io/triggersannotation to the Deployment-level metadata. OpenShift's image trigger controller requires this annotation to be present at the workload resource level (Deployment) rather than the Pod template level to correctly trigger auto-rollouts on ImageStream updates. The JSONPath used in the annotation (spec.template.spec.containers[?(@.name=="mdapi")].image) correctly targets the mdapi container in the spec. No logic or configuration issues found.✅ Summary
🤖 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.
Ah, this is likely fallout from the deploymentconfig -> deployment stuff?
In any case, looks good to me. +1
Let me know if you would like to merge/deploy or would like me to.
@kevin, thanks for the prompt review!
I am merging this pull request now.