Skip to content

Commit

Permalink
Nats deployment - trigger rollout (#3923)
Browse files Browse the repository at this point in the history
- Triggers nats-consumer deployment pods to start a new rollout whenever their image is updated
- Closes #2606
  • Loading branch information
brettedw authored Sep 13, 2024
1 parent 91be213 commit c2bcb84
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openshift/templates/nats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,18 @@ objects:
name: ${APP_NAME}-${SUFFIX}-nats-consumer
labels:
app: ${APP_NAME}-${SUFFIX}
annotations:
image.openshift.io/triggers: |-
[
{
"from": {
"kind": "ImageStreamTag",
"name": "${IMAGE_NAME}:${IMAGE_TAG}",
"namespace": "${PROJ_TOOLS}"
},
"fieldPath": "spec.template.spec.containers[0].image"
}
]
spec:
replicas: 3
selector:
Expand Down

0 comments on commit c2bcb84

Please sign in to comment.