-
Notifications
You must be signed in to change notification settings - Fork 27
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
[addon-operator] add module reregister #432
Conversation
20330ce
to
a24a155
Compare
a38c103
to
bd87d5e
Compare
49657ca
to
f2d803a
Compare
b2328ac
to
d558146
Compare
474d7d1
to
ed207d9
Compare
return false | ||
} | ||
|
||
return *moduleConfig.IsEnabled |
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.
IsEnabled
could be nil. We have to add a check
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.
done
@@ -108,6 +117,24 @@ func (kcm *KubeConfigManager) KubeConfigEventCh() chan config.KubeConfigEvent { | |||
return kcm.configEventCh | |||
} | |||
|
|||
// UpdateModuleConfig updates a single module config | |||
func (kcm *KubeConfigManager) UpdateModuleConfig(moduleName string) error { | |||
newConfig, err := kcm.backend.LoadConfig(kcm.ctx) |
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.
I think we have to add variadic parameter moduleName ...string
to the LoadConfig function, to have ability to reload only desired ModuleConfig
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.
done
Signed-off-by: Mikhail Scherba <[email protected]>
Signed-off-by: Mikhail Scherba <[email protected]>
Signed-off-by: Mikhail Scherba <[email protected]>
Signed-off-by: Mikhail Scherba <[email protected]>
ed207d9
to
74fdf90
Compare
Overview
Changes:
A lot of changes related to starting/restarting/disabling a module without restarting addon-operator.
What this PR does / why we need it
With this PR we can provide a way of reloading (restarting its life cycle like disabling and deregistering its hooks, reloading its configuration and re-run the module) a single module without restarting addon-operator.
Special notes for your reviewer