Skip to content

GH-1391 Add single function fallback opt-out - #1419

Closed
goutamadwant wants to merge 1 commit into
spring-cloud:mainfrom
goutamadwant:GH-1391
Closed

GH-1391 Add single function fallback opt-out#1419
goutamadwant wants to merge 1 commit into
spring-cloud:mainfrom
goutamadwant:GH-1391

Conversation

@goutamadwant

Copy link
Copy Markdown
Contributor

Summary

  • Add spring.cloud.function.single-function-fallback-enabled, defaulting to true, so existing single-function lookup behavior remains unchanged.
  • When disabled, an unmatched FunctionCatalog.lookup("<name>") no longer normalizes to the only registered function.
  • Update configuration metadata and add regression coverage for both default and disabled lookup behavior.

Closes #1391

Testing

  • ./mvnw -pl spring-cloud-function-context '-Dtest=BeanFactoryAwareFunctionRegistryTests#testSingleFunctionFallback*' test
  • ./mvnw -pl spring-cloud-function-context '-Dtest=BeanFactoryAwareFunctionRegistryTests' test
  • ./mvnw -pl spring-cloud-function-context test

Signed-off-by: Goutam Adwant <workwithgoutam@gmail.com>
@olegz olegz self-assigned this Jul 7, 2026
olegz added a commit that referenced this pull request Jul 8, 2026
…commit

Resolves #1391
Resolvesi #1419
Signed-off-by: Oleg Zhurakousky <ozhurakousky@vmware.com>
@olegz olegz closed this in 00bd4dd Jul 8, 2026
@olegz olegz added this to the 5.0.4 milestone Jul 8, 2026
@olegz

olegz commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution.
Next time for something like this, please add a little note to the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config option to disable auto-normalizing to single registered function if name doesn't match

2 participants