-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 Support for Pre bootstrap commands in Windows Node Groups #2004
Add Support for Pre bootstrap commands in Windows Node Groups #2004
Conversation
@sayboras @martina-if @cPu1 please review when possible. The tests started failing after rebasing over the latest The error log from Circle CI:
|
@niranjan94 thanks for your pointing this out. I got this fixed in #2021, but this PR might take some time to land in. So I have created another one to fix this issue #2097. If this is blocking you, kindly help to apply the change here as well. Sorry for any inconvenience caused. |
@niranjan94 the fix got merged into master, so simple rebase should fix the build failure. Thanks |
@sayboras the build passes now. Thank you ! :) |
You might need to rebase one more time to fix the error with link-checker, now link-check only runs if there is changes on related files. |
@niranjan94 do you want to run these commands once at instance launch or every time the instance starts? At the moment (with your branch) they are executed only once, at launch. |
@michaelbeaumont good point. I had overlooked this. Yes, currently this PR runs it only once at launch. But I see that linux nodes use I will make changes to this PR to ensure this runs on every boot too to keep the behaviour consistent with linux nodes (Will take care to ensure the kubernetes windows bootstrap command runs only once though) |
Allows the specification of preBootstrapCommands in the node group spec for windows. Users can run custom Powershell commands on instance start before the instance is bootstrapped for EKS. Issue #2003
@michaelbeaumont I have made the changes to ensure the pre-bootstrap commands run on every boot, consistent with the behavior of linux nodes. Please review when possible 😄 |
@niranjan94 I think the |
@michaelbeaumont you're right again 😄 . I completely misunderstood the My previous implementation was correct. Will revert the recent commit.
Windows & linux implementations are inline with each other on the behaviour of pre-bootstrap commands. |
OK, sounds good. I only asked initially because I wanted to be sure that's the functionality you intended it to have. thanks! |
Description
Allows the specification of preBootstrapCommands in the node group spec for windows. Users can run custom powershell commands on instance start before the instance is bootstrapped for EKS.
Resolves #2003
Checklist
README.md
, or thesite/content
directory)area/nodegroup
), target version (e.g.version/0.12.0
) and kind (e.g.kind/improvement
)