-
Notifications
You must be signed in to change notification settings - Fork 106
feat: add remote ovf/ova source support #580
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
base: main
Are you sure you want to change the base?
Conversation
d0b7a85 to
392c0a9
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.
Pull request overview
This PR extends the vsphere-clone builder to support deploying VMs from remote OVF/OVA files accessible via HTTP/HTTPS URLs, in addition to the existing template-based cloning. The implementation uses vSphere's native OVF Manager capabilities and includes comprehensive validation, authentication support, TLS configuration, credential sanitization, and extensive test coverage.
Key Changes:
- Adds
remote_sourceconfiguration block with URL, authentication credentials, and TLS options - Implements mutual exclusivity between
templateandremote_source - Adds OVF deployment functionality in the driver layer with progress monitoring
- Includes comprehensive credential sanitization to prevent exposure in logs and error messages
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
builder/vsphere/clone/step_clone.go |
Adds RemoteSourceConfig struct, OVF deployment logic, and credential sanitization |
builder/vsphere/driver/driver.go |
Implements OVF deployment, progress monitoring, error handling, and validation |
builder/vsphere/driver/driver_mock.go |
Adds mock implementations for OVF operations |
builder/vsphere/driver/driver_test.go |
Comprehensive tests for OVF functionality |
builder/vsphere/clone/step_clone_test.go |
Tests for remote source detection and deployment |
builder/vsphere/clone/config.go |
Updates code generation directive |
docs-partials/**/*.mdx |
Documentation for remote source configuration |
| Test files | HTTP server, integration tests, and credential handling tests |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
11f4a7c to
8b1e9e3
Compare
Extends the `vsphere-clone` builder to support using remote OVF and OVA files as clone sources, in addition to the current support for standard virtual machine templates. Remote OVF/OVA support enables users to deploy virtual machines directly from OVF/OVA files accessible via HTTP/HTTPS URLs using vSphere's native OVF Manager capabilities available in the `vmware/govmomi` SDK. Signed-off-by: Ryan Johnson <ryan@tenthirtyam.otg>
8b1e9e3 to
605173b
Compare
Description
Warning
End-to-end testing is still pending.
Extends the
vsphere-clonebuilder to support using remote OVF and OVA files as clone sources, in addition to the current support for standard virtual machine templates. Remote OVF/OVA support enables users to deploy virtual machines directly from OVF/OVA files accessible via HTTP/HTTPS URLs using vSphere's native OVF Manager capabilities available in thevmware/govmomiSDK.It adds a new
remote_sourceconfiguration block, updates documentation, and implements comprehensive validation and tests to ensure correct usage and mutual exclusivity betweentemplateandremote_source.Resolved Issues
Closes #566
Rollback Plan
Revert commit.
Changes to Security Controls
None.