get_image_refs doesn't link additional images found in a helm release to a unit

Summary

get_image_refs finds extra images in helm releases, typically used by hooks.
However, these images not found on pods end up in the "images_with_unknown_unit" list. They should be attached to the unit the helm release belongs to for a consistent result.

An example of such image is docker.io/rancher/kubectl:v1.33.1 which is found in the helm release rancher-compliance and should thus be added to the list of images that are part of the unit rancher-compliance. Similarly, the image should be found in pod_images_dependencies to show that it comes from the rancher-compliance helm release.

cc: @aseitz

Details

Edited by Alain Thioliere