# Update Workload on Pipeline Execution

**URL:** <https://forums.suse.com/t/update-workload-on-pipeline-execution/10156>\
**Category:** Rancher 2.0 Tech Preview\
**Created:** [April 24, 2018, 8:43am UTC](https://forums.suse.com/t/update-workload-on-pipeline-execution/10156 "2018-04-24T08:43:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![remigius](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/remigius/32/3922_2.png) [@remigius](https://forums.suse.com/u/remigius)\
**Post date:** [April 24, 2018, 8:43am UTC](https://forums.suse.com/t/update-workload-on-pipeline-execution/10156/1 "2018-04-24T08:43:05Z")

</div>

Hi,

Are there any means to automatically update a workload when a pipeline successfully pushes a newly created image?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [April 24, 2018, 9:08am UTC](https://forums.suse.com/t/update-workload-on-pipeline-execution/10156/2 "2018-04-24T09:08:53Z")

</div>

Not at this time. There are other projects that do similar, e.g. [https://github.com/keel-hq/keel](https://github.com/keel-hq/keel) .

---

<div class="post-metadata">

**Author:** ![remigius](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/remigius/32/3922_2.png) [@remigius](https://forums.suse.com/u/remigius)\
**Post date:** [April 24, 2018, 9:54am UTC](https://forums.suse.com/t/update-workload-on-pipeline-execution/10156/3 "2018-04-24T09:54:17Z")

</div>

@vincent Thanks for the fast reply.

This rises a couple of follow-up questions:

- Will this be available on GA?
- Does it look feasible to perform this with a couple of lines of shell script and the rancher cli?
- Will rancher server update its state if another tool (like keel) updates k8s woirkloads directly (bypassing rancher)?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [April 24, 2018, 10:01am UTC](https://forums.suse.com/t/update-workload-on-pipeline-execution/10156/4 "2018-04-24T10:01:07Z")

</div>

No

They can certainly update a deployment but a shell script is not going to receive a webhook from Dockerhub and react to it.

Yes, there is only one system of record (etcd).

---

<div class="post-metadata">

**Author:** ![remigius](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/remigius/32/3922_2.png) [@remigius](https://forums.suse.com/u/remigius)\
**Post date:** [April 25, 2018, 8:16pm UTC](https://forums.suse.com/t/update-workload-on-pipeline-execution/10156/5 "2018-04-25T20:16:30Z")

</div>

@vincent I am aware that a shell script itself will not receive webhooks, but I was thinking to run a shell script from the pipeline after publishing the images. It could either invoke rancher cli or API (e.g. via curl). A potential problem is to get the necessary keys into the container that runs the scripts without compromising security too much (I assume, there is no way to get secrets into a pipeline step).
