-
Notifications
You must be signed in to change notification settings - Fork 319
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(autoconfig): autoconfig module #1308
Conversation
has shared properties to be used by generated spring autoconfigured client beans
...red-autoconfig-properties/src/main/java/com/google/cloud/spring/shared/SharedProperties.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Min Zhu <zhumin@google.com>
...red-autoconfig-properties/src/main/java/com/google/cloud/spring/shared/SharedProperties.java
Outdated
Show resolved
Hide resolved
...bal-autoconfig-properties/src/main/java/com/google/cloud/spring/global/GlobalProperties.java
Show resolved
Hide resolved
...bal-autoconfig-properties/src/main/java/com/google/cloud/spring/global/GlobalProperties.java
Outdated
Show resolved
Hide resolved
…e/cloud/spring/global/GlobalProperties.java Co-authored-by: Emily Wang <emmwang@google.com>
...bal-autoconfig-properties/src/main/java/com/google/cloud/spring/global/GlobalProperties.java
Show resolved
Hide resolved
Perhaps get some test coverage with a simple test with fake credential key? |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these global properties specific to the auto-generated modules? Shouldn't they be in autoconfiguration core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as far as I'm concerned, but I've added Mike's question to the design doc's section.
Closing as not planned |
…1123) As discussed off-line, instead of depending on a new `global-properties` module, use `CredentialsProvider` bean from `spring-cloud-gcp-autoconfigure` instead. - Replace dependency from `core` to `autoconfigure` module. - Revert #1071 and implement changes shown in [poc](zhumin8/language_poc1#7) - Minor code cleanups and util method extracted from `SpringPropertiesClassComposer.java`. Note: #1071 and GoogleCloudPlatform/spring-cloud-gcp#1308 will be obsolete after this change. Also, conflicts needs to be resolved between this pr and #1110 depending on merging order.
has shared properties to be used by generated spring autoconfigured client beans