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

Use 'vmv1' for neonvm API import everywhere #1157

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Conversation

sharnoff
Copy link
Member

Within neonvm-controller, we're consistently using vmv1 to refer to the .../apis/neonvm/v1 import, but elsewhere we're using vmapi instead.

vmv1 is closer to the typical kubernetes imports like corev1 and metav1, even if it doesn't exactly match the import path.


Notes for review: Low priority, been on my todo list for a while and I figured that #995 was a good enough excuse to do it. Also, this is probably a good candidate to add to .git-blame-ignore-revs after merging, because otherwise it's a lot of noise.

Within neonvm-controller, we were consistently using 'vmv1' to refer to
the ".../apis/neonvm/v1" import, but elsewhere we were using 'vmapi'
instead.

'vmv1' is closer to the typical kubernetes imports like corev1 and
metav1, even if it doesn't exactly match the import path.
Copy link

No changes to the coverage.

HTML Report

Click to open

Copy link
Contributor

@Omrigan Omrigan left a comment

Choose a reason for hiding this comment

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

Nice, wanted to do the same!

Inconsistent imports are annoying when working across several components.

@sharnoff sharnoff merged commit 3aebca4 into main Nov 25, 2024
23 checks passed
@sharnoff sharnoff deleted the sharnoff/s/vmapi/vmv1/g branch November 25, 2024 17:52
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