mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 19:06:39 +08:00
fedora-image-uploader: fix deployment trigger on image changes
I broke the trigger when I switched from one container to multiple containers in the pod. Syntax-wise, I found this multi-line variant in the CoreOS Cincinnati deployment config, and it seems like there's not a way to say "all container images in the spec". Or there might be, but I couldn't find an example or documentation. Signed-off-by: Jeremy Cline <jeremycline@linux.microsoft.com>
This commit is contained in:
@@ -4,7 +4,13 @@ kind: Deployment
|
||||
metadata:
|
||||
name: cloud-image-uploader
|
||||
annotations:
|
||||
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"cloud-image-uploader:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"cloud-image-uploader\")].image"}]'
|
||||
image.openshift.io/triggers: >-
|
||||
[
|
||||
{"from":{"kind":"ImageStreamTag","name":"cloud-image-uploader:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"azure-image-uploader\")].image"},
|
||||
{"from":{"kind":"ImageStreamTag","name":"cloud-image-uploader:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"aws-image-uploader\")].image"},
|
||||
{"from":{"kind":"ImageStreamTag","name":"cloud-image-uploader:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"container-image-uploader\")].image"},
|
||||
{"from":{"kind":"ImageStreamTag","name":"cloud-image-uploader:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"google-cloud-image-uploader\")].image"}
|
||||
]
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
|
||||
Reference in New Issue
Block a user