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:
parent
aacfa2b00e
commit
15b054fc8a
1 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue