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

Allow configuration of logger and build version in gvisor service lib… #1239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maggie44
Copy link

@maggie44 maggie44 commented Oct 9, 2024

The current implementation of gvisor exposes service.New as the entry point. Inside there, nebula.Main is configured. This prevents nebula.Main being customised with a logger or build version.

This PR changes service.New from taking a config file to taking *nebula.Control generated by nebula.Main instead.

I considered allowing passing in the logger and build version, but as nebula.Main is the main entry point for Nebula, and exposed (i.e. a capital M) it seems logical that this is not hidden within the service function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant