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

MTV-1610: Avoid uncommon potential inventory crash. #1283

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

mrnold
Copy link
Contributor

@mrnold mrnold commented Dec 20, 2024

Assuming I have matched up the right code correctly, MTV-1610 shows an inventory crash pointing here: https://github.com/kubev2v/forklift/blob/v2.7.2/pkg/controller/provider/container/vsphere/model.go#L660

This pull request just adds a nil check on the DnsConfig field that appears to cause the problem. I have not been able to configure an IP stack without DNS in vSphere, but this is low risk for a speculative fix. It is pretty much copied from the previous fGuestNet case, and I don't see this DnsConfig used anywhere.

@mrnold mrnold requested review from mnecas and yaacov as code owners December 20, 2024 15:56
Copy link
Contributor

@mansam mansam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mnecas mnecas merged commit f4b0b61 into kubev2v:main Jan 9, 2025
16 of 17 checks passed
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.

3 participants