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

The plugins are also deployed when 'Sealer join' is executed #1238

Merged
merged 4 commits into from
Mar 25, 2022

Conversation

bxy4543
Copy link
Member

@bxy4543 bxy4543 commented Mar 14, 2022

The plugins are also deployed when 'Sealer join' is executed

s.MountRootfs,
s.GetPhasePluginFunc(plugin.PhasePreInit),
s.Join,
s.GetPhasePluginFunc(plugin.PhasePreGuest),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Join should not exec preguest plugins.

@fanux
Copy link
Collaborator

fanux commented Mar 15, 2022

Maybe we need PreJoin phase, and only exec PreJoin plugins when join master or nodes.

Support multi phase:

action: PreJoin | PreInit

@bxy4543
Copy link
Member Author

bxy4543 commented Mar 15, 2022

Maybe we need PreJoin phase, and only exec PreJoin plugins when join master or nodes.

Support multi phase:

action: PreJoin | PreInit

great

@bxy4543 bxy4543 force-pushed the fix/deploy_plugins_when_join branch from 0b38f4d to d30790f Compare March 16, 2022 08:29
support multiple phase;
@bxy4543 bxy4543 force-pushed the fix/deploy_plugins_when_join branch from d30790f to 05a4fa2 Compare March 16, 2022 08:32
s.MountRootfs,
s.GetPhasePluginFunc(plugin.PhasePreJoin),
s.Join,
s.GetPhasePluginFunc(plugin.PhasePostInstall),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think only exec PhasePreJoin and PhasePostJoin

@bxy4543 bxy4543 force-pushed the fix/deploy_plugins_when_join branch from b1c1ec8 to 185f0eb Compare March 23, 2022 09:28
@fanux fanux merged commit f8e9b62 into sealerio:main Mar 25, 2022
@bxy4543 bxy4543 deleted the fix/deploy_plugins_when_join branch April 3, 2022 06:28
bxy4543 added a commit to bxy4543/sealer that referenced this pull request Jun 27, 2022
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.

Using sealer join -n to join a new node, the Plugin inside the Clusterfile is not executed.
2 participants