Closed dennislapchenko closed 3 months ago
I don't understand the point of this PR. If the image doesn't exist, not rewriting it will not fix your issue, the image will still not exist :thinking:
@paullaffitte yes.. my apologies i incorrectly understood what was required and didn't bother to fully get into the reason why... closing MR, great time wasted.. ;D
Why: Controller will mutate container's image even if remote image is not actually present in downstream registry. This causes issues for some types of workloads. Namely gitlab's runners will fail the job if first start will fail.
This PR adds the option to verify image existence before
image:
mutation. Image rewritability check now includes an authed call to registry to fetch image descriptor.New Helm chart value:
Flipping to false will verify image existence.
Tests: Struggling to see how an appropriate test could be written. If required - please advise