Disable Kubernetes pod update when container digest is same even if different image tag is given

Let’s say I have an image foo with tag v1.
So I deployed it on Kubernetes by foo:v1.

However, for some reason(e.g. monoversion in monorepo), I pushed the exact same image to container registry with tag v2.
And I changed k8s manifest to foo:v2.

In this situation, I want to update the pod only when the image digest of v1 and v2 are different. So in the case of foo, the digest are same, so container of foo:v1 should keep running.

Is this possible? If so, how?

Thanks

Source: StackOverflow