Hello,
I’d like to recommend that we remove the hardcoded registry portion of the inspector-image and provide the user a way to determine the registry and image for which the pod will deploy.
Specifically, changing the file
app/models/manageiq/providers/kubernetes/container_manager/scanning/job.rb:
def inspector_image
'docker.io/openshift/image-inspector:v1.0.z'
end
to something like this:
def inspector_image
registry = @ems_configs.fetch_path(:ems_kubernetes, :inspector_image_registry)
return "#{registry}/openshift/image-inspector:v1.0.z" unless registry.empty?
return 'openshift/image-inspector:v1.0.z'
end
The reason this was an issue is because many deployments will have restricted environments and being to point to an internal registry will be useful.
Please let me know your thoughts, thanks!