1
0
Fork 0
forked from infra/ansible

badges: fix image trigger annote order on deploy metadata

Similar to infra/ansible#3338

Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
This commit is contained in:
Akashdeep Dhar 2026-05-28 11:38:53 +05:30
commit 993e600700

View file

@ -118,6 +118,8 @@ metadata:
labels:
app: badges
deployment: consumer
annotations:
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"fedbadges:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"consumer\")].image"}]'
spec:
replicas: {{ (env == 'production')|ternary(2, 1) }}
selector:
@ -131,8 +133,6 @@ spec:
labels:
app: badges
deployment: consumer
annotations:
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"fedbadges:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"consumer\")].image"}]'
spec:
initContainers:
- name: db-sync