Skip to content

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

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

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

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>
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.

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

1 participant