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

feat(kuma-cp) compile Kuma with custom Runtime and Bootstrap plugins #947

Merged
merged 9 commits into from
Aug 4, 2020

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

  • install-control plane can now mount secrets
  • version returns Kuma: 0.7.0 instead of 0.7.0
  • compile Kuma with custom Runtime and Bootstrap plugins

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>
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>
@jakubdyszkiewicz jakubdyszkiewicz requested a review from a team as a code owner August 4, 2020 10:05
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
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

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)?

Copy link
Contributor Author

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>
@jakubdyszkiewicz jakubdyszkiewicz merged commit a77f86b into master Aug 4, 2020
@jakubdyszkiewicz jakubdyszkiewicz deleted the chore/parametrize-plugins branch August 4, 2020 11:44
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.

2 participants