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

chore: use exposed controller functions in topolvm controllers #878

Merged

Conversation

jakobmoellerdev
Copy link
Contributor

In retrospect of #875 I noticed that everytime we add a field, we also have to export all embedded fields with it to work correctly outside of the topolvm package. This makes going back and forth for every field extremely tedious.

I thus changed the current command runners in TopoLVM to use the pkg variants of the runners. This will not change any logic (we were already using the same logic just with internal imports) but will let us know via compiler error whenever we have a field change that needs to be exported as well.

Signed-off-by: Jakob Möller <jmoller@redhat.com>
@jakobmoellerdev jakobmoellerdev requested a review from a team as a code owner April 8, 2024 15:11
@jakobmoellerdev jakobmoellerdev force-pushed the expose-controller-server-settings branch 2 times, most recently from 55c5de7 to c43b1a6 Compare April 8, 2024 15:39
cmd/topolvm-node/app/run.go Outdated Show resolved Hide resolved
Signed-off-by: Jakob Möller <jmoller@redhat.com>
@toshipp toshipp merged commit b0a2229 into topolvm:main Apr 10, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants