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(plugins): Add kork-plugins, wire up initial spel function extension point #3242

Merged
merged 2 commits into from
Oct 23, 2019

Conversation

robzienert
Copy link
Member

Depends on spinnaker/kork#398

import org.jetbrains.annotations.Nullable;
import org.pf4j.Extension;

@Extension
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this would essentially be a "system extension"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right. Although I'm gonna delete this from the PR. I didn't mean for it to come along for the ride.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems that if functions can be expanded we might need a way for the extension to provide additional extraAllowedReturnTypes for example, but we can tackle that later, obviosly

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I have no intention of changing how spel function customization is done, only in providing new ways to provde said functions.

@@ -132,8 +137,8 @@ UserConfiguredUrlRestrictions userConfiguredUrlRestrictions(

@Bean
public ContextParameterProcessor contextParameterProcessor(
List<ExpressionFunctionProvider> expressionFunctionProviders) {
return new ContextParameterProcessor(expressionFunctionProviders);
List<ExpressionFunctionProvider> expressionFunctionProviders, PluginManager pluginManager) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is the bean for PluginManager, i am confused...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, does it come from pf4j?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it comes from SpinnakerPluginManager which is configured in Kork

@robzienert robzienert force-pushed the spel-func-extensionpoint branch 2 times, most recently from 2b54fc2 to 78b90ba Compare October 22, 2019 19:10
@robzienert robzienert added the ready to merge Approved and ready for merge label Oct 22, 2019
Copy link
Contributor

@marchello2000 marchello2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mergify mergify bot merged commit 154eb6c into spinnaker:master Oct 23, 2019
@marchello2000 marchello2000 added the auto merged Merged automatically by a bot label Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for merge target-release/1.17
Projects
None yet
4 participants