Make get_image_refs.py work with any workload cluster kubeconfig
Summary
The script get_image_refs.py accepts in input the argument --workload-kubeconfig to provide a kubeconfig for a workload cluster on which to gather the list of consumed images.
!7853 (comment 3472759597) indicates correctly that the function get_workload_cluster_namespace_from_kubeconfig assumes that the host field in the kubeconfig matches exactly the host and port of the controlPlaneEndpoint in a cluster CR. This is true in the way that the script is used in CI, i.e. with a kubeconfig created by clusterAPI. But it would not be correct for other kubeconfigs, like for a kubeconfig generated by Rancher.
This issue is created to improve the script and make it usable with more generic kubeconfigs if need be.