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

Add boot-ip-setter #2767

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add boot-ip-setter #2767

wants to merge 3 commits into from

Conversation

masa213f
Copy link
Contributor

@masa213f masa213f commented Jan 7, 2025

This PR implementes #2357 .

Add a new daemon boot-ip-setter on boot servers, and it sets virtual IPs.

@masa213f masa213f force-pushed the boot-ip-setter branch 3 times, most recently from d5dcd60 to 6af14e9 Compare January 22, 2025 02:58
Signed-off-by: Masayuki Ishii <[email protected]>
@masa213f masa213f changed the title wip: boot-ip-setter Add boot-ip-setter Jan 23, 2025
Signed-off-by: Masayuki Ishii <[email protected]>
zeroalphat
zeroalphat previously approved these changes Jan 24, 2025
Copy link
Contributor

@zeroalphat zeroalphat left a comment

Choose a reason for hiding this comment

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

The PR looks good to me.
As for the parts I commented on, I think they're just a matter of preference, so feel free to merge it as is.

ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGTERM, syscall.SIGINT)
defer stop()

logger.Info("hello!", "interface", *flagInterface, "interval", *flagInterval, "listen address", *flagListenAddress)
Copy link
Contributor

Choose a reason for hiding this comment

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

While it might be a matter of preference, I felt it would be better to have a log message indicating that boot-ip-setter has started.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you. That's right, and it is more polite.
Fixed 8faad74

os.Exit(1)
}

logger.Info("bye!")
Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly, I felt it would be better to have a log message indicating that boot-ip-setter has finished.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed 8faad74

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