-
Notifications
You must be signed in to change notification settings - Fork 339
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
feat(kuma-cp) compile Kuma with custom Runtime and Bootstrap plugins #947
Conversation
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
…lugins Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
for name, plugin := range core_plugins.Plugins().BootstrapPlugins() { | ||
if (cfg.Environment == config_core.KubernetesEnvironment && name == core_plugins.Universal) || | ||
(cfg.Environment == config_core.UniversalEnvironment && name == core_plugins.Kubernetes) { | ||
continue |
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.
why it is not an error or panic?
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.
Because we go through all plugins. We want to skip kubernetes plugin on universal and universal plugin on kubernetes. Probably a better way to do it would be to have a list of plugins to load and refactor all plugins to load in such way, but I don't have time for it for now
@@ -30,11 +30,13 @@ const ( | |||
|
|||
type Registry interface { | |||
Bootstrap(PluginName) (BootstrapPlugin, error) | |||
BootstrapPlugins() map[PluginName]BootstrapPlugin |
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.
Do we still need Bootstrap(PluginName)
and Runtime(PluginName)
?
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.
Left it out of the convention, I can remove it
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Summary
Kuma: 0.7.0
instead of0.7.0