Skip to content

Conversation

@wind57
Copy link
Contributor

@wind57 wind57 commented Oct 5, 2025

No description provided.

* @author wind57
*/
public interface SecretsCache {
public enum ReadType {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the idea of this PR is here and this is what the OP has described in the issue.

At the moment, we read configmaps and secrets in a batch fashion, meaning all in a namespace. For some users this means reading a lot of sources and its not OK. So we introduce the possibility to read them individually.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its a lot of changes, but they all stem from the above separation. I've written quite a lot of tests to be sure that we are OK with the old and new implementation

wind57 added 3 commits October 5, 2025 11:03
Signed-off-by: wind57 <[email protected]>
Signed-off-by: wind57 <[email protected]>
Signed-off-by: wind57 <[email protected]>
@wind57 wind57 marked this pull request as ready for review October 5, 2025 08:42
@wind57
Copy link
Contributor Author

wind57 commented Oct 5, 2025

@ryanjbaxter fix one is ready also: lots of breaking changes were needed to support this. thank you

@ryanjbaxter ryanjbaxter linked an issue Oct 5, 2025 that may be closed by this pull request
@wind57 wind57 changed the title Fix 1681 Fix 1681 (1) Oct 5, 2025
by setting `spring.cloud.kubernetes.config.retry.enabled=false`.


NOTE: Since version `5.0.0-M3`, we have introduced the possibility to read sources individually. Until now, we would go to the namespace and read all the configmaps / secrets available and then filter out the ones requested. Since `5.0.0-M3` you can specify that you want to read them individually, by setting the property: `spring.cloud.kubernetes.config.read-type=SINGLE`. The previous option to read them all in a namespace is controlled by `spring.cloud.kubernetes.config.read-type=BATCH` and it is the default option.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would drop the -M3 here, no one will use a milestone once the GA versions is out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, changed

@wind57 wind57 requested a review from ryanjbaxter October 5, 2025 18:01
@ryanjbaxter ryanjbaxter merged commit b47de1e into spring-cloud:main Oct 5, 2025
18 checks passed
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.

Long Startup Times When Many Configmaps Exist

3 participants