Support Importing Volume Over HTTP Using Basic Auth #1878
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
One way to import a a virtual machine disk, is via an http endpoint that holds a raw image. So far this method didn't support basic auth to interact with the image repo server that holds these raw images. This PR supports sending the basic auth as a header in the CDI DataVolume object by reading the headers either explicitly from the Machine Deployment spec or referring to a secret that contains those headers.
ExtraHeaders
field in the MachineDeployment spec is used to read those headers explicitly and send them as part of the importing request.ExtraHeadersFromSecret
is used to read those headers from a secret that is being referenced in the MachineDeployment object.Which issue(s) this PR fixes:
/kind feature
Fixes #
What type of PR is this?
Special notes for your reviewer:
This PR has been tested manually and it succeeded.
Does this PR introduce a user-facing change? Then add your Release Note here:
Documentation: