title: Kubernetes cron job needs to get tag from prod rather than latest?
body: <p>I have a Kubernetes cron job that runs off the latest image of my repo. In the yaml definition of the cron job the image definition is like this:</p>
  
  <pre><code>image: 123456789.abc.ecr.us-west-1.amazonaws.com/company/myservice:latest
  </code></pre>
  
  <p>The issue is our latest tag gets updated anytime there is a merge to master in GitHub. However, the code is not deployed to prod at this point. There is no continuous deployment though so our code is not deployed in prod, however the latest code from master will be used by the cron job.</p>
  
  <p>Does it work as a solution to tag a 'prod' image that the cron job will run from? In this case when we deploy, the prod image would get updated to that image. Also, if there is a rollback we would update the prod image to be the image that prod is now reverting to.</p>
  
  <p>Or is there a better solution/pattern to this issue?</p>