Automatically create NetworkPolicies if NetworkPolicy usage is detected #3497
Labels
kind/enhancement
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Is your feature request related to a problem? Please describe:
When specifying a URL to import either via
virtctl image-upload
or on adataVolumeTemplate
and the cluster makes use of NetworkPolicies, users are required to apply a NetworkPolicy in their namespace to make the import work.For
dataVolumeTemplate
of an Ubuntu ISO:For
virtctl image-upload
:Describe the solution you'd like:
An option for KubeVirt CDI to detect if NetworkPolicies are being used in a namespace. If they are, add one to allow containerized-data-importer to download the image. If not, don't apply a NetworkPolicy.
Describe alternatives you've considered:
For now users are able to specify the above NetworkPolicies to import their VM.
Additional context:
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: