KEMBAR78
dont create a bean when not needed by wind57 · Pull Request #1881 · spring-cloud/spring-cloud-kubernetes · GitHub
Skip to content

Conversation

@wind57
Copy link
Contributor

@wind57 wind57 commented Feb 22, 2025

No description provided.

@wind57 wind57 changed the title fix dont create a bean when not needed Feb 22, 2025
Signed-off-by: wind57 <eugen.rabii@gmail.com>

@Bean
@ConditionalOnMissingBean
@Profile({ NOT_AMQP_NOT_KAFKA })
Copy link
Contributor Author

@wind57 wind57 Feb 22, 2025

Choose a reason for hiding this comment

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

I am proposing to do this change here, create the HttpRefreshTrigger bean only when the profile is not bus-amqp and not bus-kafka

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMO this should have been present initially, but I missed it too a while ago. It came out as I was working on refactoring ITs

@wind57 wind57 marked this pull request as ready for review February 22, 2025 21:59
@wind57
Copy link
Contributor Author

wind57 commented Feb 22, 2025

@ryanjbaxter let me know if you agree with this or not...

@ryanjbaxter ryanjbaxter added this to the 3.1.6 milestone Feb 25, 2025
@ryanjbaxter ryanjbaxter merged commit 2cc8c34 into spring-cloud:3.1.x Feb 25, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done
Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants