Open phenixblue opened 3 years ago
Would it make sense to record the full detail of the swap?
annotations:
imageswap-webhook-swaps: [{"original": "image1", "swap": "my.example.com/mirror-docker.io/image1"}, {"original": "quay.io/image2", "swap": "my.example.com/mirror-quay.io/image2"}]
I was originally thinking of just recording the original image since the current resource should show what the image was swapped to, but it's simple enough, we should be able to do both.
What would you like to be added:
The ImageSwap webhook should record the original image reference within an annotation if a swap occurs.
Why is this needed:
This will give a historic record of image swaps per resource for troubleshooting purposes.
This will need to account for multiple containers/init-containers within a pod
Maybe a json based list within an annotation value.
Example: