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:
parent
33e15c3b95
commit
51dad08b81
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue