Skip to content

Commit

Permalink
Merge pull request packit#94 from jpopelka/sts-worker-triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
2 parents 3576077 + eb3bf30 commit a862366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/roles/deploy/templates/worker-sts.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ metadata:
annotations:
# Setting triggers to StatefulSet is tricky (they also don't appear in GUI).
# I run the following and then checked how the resulting yaml looks like.
# oc set triggers statefulset.apps/dist2src-worker --from-image=dist2src-worker:latest -c dist2src-worker-1
# oc set triggers sts/dist2src-worker --from-image=dist2src-worker:latest -c dist2src-worker
image.openshift.io/triggers: >-
[{"from":{"kind":"ImageStreamTag","name":"dist2src-worker:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"dist2src-worker-1\")].image"}]
[{"from":{"kind":"ImageStreamTag","name":"dist2src-worker:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"dist2src-worker\")].image"}]
spec:
selector:
matchLabels:
Expand Down

0 comments on commit a862366

Please sign in to comment.