1
0
Fork 0
forked from infra/ansible

resultsdb: Fix image trigger annotation placement on API deployment

Move the annotation to Deployment metadata where OpenShift's
trigger controller actually watches for it.

Assisted-by: Claude (Anthropic)
This commit is contained in:
Lukas Holecek 2026-06-10 15:20:09 +00:00 committed by Michal Konečný
commit 51dad08b81

View file

@ -6,6 +6,8 @@ metadata:
labels:
service: api
app: resultsdb
annotations:
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"resultsdb-api:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"api\")].image"}]'
spec:
replicas: 2
selector:
@ -20,8 +22,6 @@ spec:
labels:
service: api
app: resultsdb
annotations:
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"resultsdb-api:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"api\")].image"}]'
spec:
initContainers:
- name: db-init