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

Split the network unit logic from Apply() #20

Conversation

gabriel-samfira
Copy link
Member

Split network config from initialize.Apply()

This change moves some code in the main function to fetch the metadata and create the env a bit earlier. It also splits the network unit creation from the initialize.Apply() function.

This also fixes a bug where systemd-networkd was restarted before the units were actually processed.

How to use

This change does not change the behavior of coreos-cloudinit, except for some logging messages.

Testing done

None yet. This change is part of a larger effort, but is useful on it's own. Will update the PR once testing has been done.

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

This change moves some code in the main function to fetch the metadata
and create the env a bit earlier. It also splits the network unit
creation from the initialize.Apply() function.

This also fixes a bug where systemd-networkd was restarted before the
units were actually processed.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
@gabriel-samfira
Copy link
Member Author

Closing in favor of #21

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