Skip to content

Conversation

@wind57
Copy link
Contributor

@wind57 wind57 commented Oct 6, 2025

No description provided.

@DefaultValue("false") boolean enabled, String name, String namespace, boolean useNameAsPrefix,
@DefaultValue("true") boolean includeProfileSpecificSources, boolean failFast,
@DefaultValue RetryProperties retry, @DefaultValue("BATCH") ReadType readType) {
public final class SecretsConfigProperties extends SourceConfigProperties {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this entire PR is based on this (and same configmap) change.

In the secrets and configmaps normalization and determining the sources, we do the same exact code. Meaning methods SecretsConfigProperties::determineSources and ConfigMapConfigProperties::determineSources, do the same exact thing. The only difference is where the result is stored.

As such, let's create a SourceConfigProperties that does all that work, and these two classes simply extend it.

Nothing changes besides this, same code, same logic.

The many changes in this PR are triggered by the fact that I changed a couple or arguments with places, so that ConfigMapConfigProperties and SecretsConfigProperties match exactly.

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

wind57 commented Oct 6, 2025

@ryanjbaxter one more in main to take a look. Ive left a comment explaining it. Thank you

@ryanjbaxter ryanjbaxter changed the title Unify config propertie Unify config properties Oct 6, 2025
@ryanjbaxter ryanjbaxter added this to the 5.0.0-M4 milestone Oct 6, 2025
@ryanjbaxter ryanjbaxter merged commit a7ce440 into spring-cloud:main Oct 6, 2025
18 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

Development

Successfully merging this pull request may close these issues.

3 participants