-
Notifications
You must be signed in to change notification settings - Fork 2.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 setup hook capabilities for rke2 #2146
Conversation
Signed-off-by: Brian Downs <[email protected]>
2d1d7b5
to
a4b2953
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might these better be called StartupHooks? They're called in StartServer, after the apiserver and controllers are started, well after any other setup has already been done.
Based on the current name I was expecting to be able to do some setup, maybe alter the configuration if I needed to customize something before it was used to set up the rest of the system.
They'd be used during RKE2 setup. I open to calling them anything that makes their use clear. |
So k3s calls these hooks during startup, but rke2 calls them during setup? Or does rke2 add them during setup? I'm in favor of naming them after the place they get called. |
Signed-off-by: Brian Downs <[email protected]>
changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️ 🇮🇹
Signed-off-by: Brian Downs <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call on the context and error handling.
Proposed changes
This PR adds the ability to add hooks to be run in bootstrapping in k3s that will ultimately be used during rke2 startup.
Types of changes
Adds a slice to a struct field and referenced during k3s start up.
Verification
Verification will be had through it's use in this RKE2 pull request. rancher/rke2#199
Linked Issues
N/A
Further comments
N/A