-
Notifications
You must be signed in to change notification settings - Fork 31
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
Support adding an ESXi host as a source provider #697
Conversation
pkg/forklift-api/webhooks/mutating-webhook/mutators/provider-mutator.go
Outdated
Show resolved
Hide resolved
dbdb095
to
c9c038e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
one question about the mutator/validation - does it make any sense to validate the given URLs of each provider to see it has /api
? / /sdk
?
we chose not to enforce it - the UI shows a warning in this case and lets the user to proceed with posting the provider |
f06d504
to
967a954
Compare
@yaacov that's what we agreed on offline, are you also ok with naming the new setting |
Ack, that is good for me too |
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 7 New issues |
This PR adds the ability to add a vSphere provider that connects to SDK that is served by an ESXi host, instead of that of vCenter. This allows users to import directly from environments that comprise of ESXi hosts, without vCenter.
We don't add a new type of provider since most of the code is similar in both cases, the SDK that is exposed from ESXi aligns with the one exposed from vCenter. The only difference is that in case we operate with an ESXi host, we need to set the libvirt URL with
esx://
rather thanvpx://
for virt-v2v.For vSphere providers that interact with an ESXi hosts, the backend doesn't assume clients specify the credentials for the host as these credentials were already specified for the provider - a mutating webhook copies the credentials from the secret of the Provider to the secret of the Host in this case.