# imagePullSecrets gone after upgrading image version

**URL:** <https://forums.suse.com/t/imagepullsecrets-gone-after-upgrading-image-version/20682>\
**Category:** k3s, k3OS, and k3d\
**Created:** [July 8, 2021, 3:48pm UTC](https://forums.suse.com/t/imagepullsecrets-gone-after-upgrading-image-version/20682 "2021-07-08T15:48:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akito](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/akito/32/5805_2.png) [@Akito](https://forums.suse.com/u/Akito)\
**Post date:** [July 8, 2021, 3:48pm UTC](https://forums.suse.com/t/imagepullsecrets-gone-after-upgrading-image-version/20682/1 "2021-07-08T15:48:50Z")

</div>

When you update the image tag of a Deployment through the Rancher Web-UI in an imported `k3s` Cluster, the `imagePullSecrets` of that Deployment get erased.

> <https://github.com/rancher/rancher/issues/18408#issuecomment-875640201>
>
> Seems like this was previously reported and closed, but its happening in 2.2.0-r…c2. I have imagePullSecrets set on a deployment. If i use the form in the GUI to update the image to a newer version/tag, imagePullSecrets is removed from the deployment, and the upgrade fails (can't pull).
> 
> I can edit YAML, add imagePullSecrets back in, and all is well again until the next update. Update version again and problem repeats.
> 
> If I edit the deployment YAML (through the web gui) and change the image tag there, all is well. 
> 
> 
> 
> \---
> | Useful | Info |
> | :-- | :-- |
> |Versions|Rancher \`v2.2.0-rc2\` UI: \`v2.2.3\` |
> |Route|\`workload\`|
