gitkube icon indicating copy to clipboard operation
gitkube copied to clipboard

Track latest build tag and patch when image changes for deployments

Open shahidhk opened this issue 6 years ago • 1 comments

As mentioned in #71, sometimes a user might need to update the deployment (say kubectl apply) and when it happens, the image name is overwritten.

The controller needs to keep track of latest build tags for deployments in each remote.

When any of these deployments' image field gets updated, controller can patch it to the latest build tag.

So, whenever a new build happends, a relevent key should be updated in Remote.Status. Then controller can watch all the tracked deployments and patch when required.

shahidhk avatar May 25 '18 21:05 shahidhk

Hi, I also think automatically tagging with latest or another label (e.g. the name of the branch that was pushed) would be the most convenient workaround for these cases.

majodev avatar Jul 25 '18 16:07 majodev