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

Don't error validation if kubevirt is not installed #1408

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

awels
Copy link
Collaborator

@awels awels commented Mar 25, 2025

By not checking and checking the live migration
check box in the plan, it would error out making
the plan not ready. This would only happen if kubevirt was not installed.

This PR fixes this by checking if the error is that the CRD does not exist and it will return nil instead of erroring out.

By not checking and checking the live migration
check box in the plan, it would error out making
the plan not ready. This would only happen if kubevirt
was not installed.

This PR fixes this by checking if the error is that
the CRD does not exist and it will return nil instead
of erroring out.

Signed-off-by: Alexander Wels <[email protected]>
@awels awels changed the title Was not checking if KubeVirt CRD was not installed Don't error validation if kubevirt is not installed Mar 26, 2025
Copy link
Contributor

@rayfordj rayfordj left a comment

Choose a reason for hiding this comment

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

/lgtm

@rayfordj rayfordj merged commit 395c584 into migtools:master Mar 26, 2025
1 check 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.

2 participants