Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vSphere: URL in the secret is optional #769

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

ahadas
Copy link
Member

@ahadas ahadas commented Feb 29, 2024

Users should specify the URL in the secret in case they like the system to validate the provider configuration using a webhook (additional labels are also required on the secret in this case). But when users ar not interested in such validations, they can omit the URL from the secret and the migration from a valid provider should succeed.

However, recent changes in the builder of vSphere caused the URL we pass to virt-v2v to be taken from the secret and thus virt-v2v was provided with an empty URL in the aforementioned case, causing the migration to fail. Here, we replace that part and rather take the URL from the configuration of the provider (instead of its secret).

Users should specify the URL in the secret in case they like the system
to validate the provider configuration using a webhook (additional
labels are also required on the secret in this case). But when users ar
not interested in such validations, they can omit the URL from the
secret and the migration from a valid provider should succeed.

However, recent changes in the builder of vSphere caused the URL we pass
to virt-v2v to be taken from the secret and thus virt-v2v was provided
with an empty URL in the aforementioned case, causing the migration to
fail. Here, we replace that part and rather take the URL from the
configuration of the provider (instead of its secret).

Signed-off-by: Arik Hadas <[email protected]>
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@ahadas ahadas merged commit f9adc46 into kubev2v:release-v2.6.0 Feb 29, 2024
6 checks passed
@ahadas ahadas deleted the release-v2.6.0 branch March 3, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants