Skip to content

Conversation

@jnodorp-jaconi
Copy link

Fixes gh-1757

Fixes gh-1757

Signed-off-by: Julian Nodorp <[email protected]>
*/
public final record PrefixContext(Map<String, Object> data, String prefix, String namespace,
Set<String> propertySourceNames) {
public final record PrefixContext(MultipleSourcesContainer data, Function<String, String> prefix, String namespace) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a breaking change and unfortunately we can't merge breaking changes in main. This only happens on "next major" releases. afaik: next one is at the end of 2025. Ryan can confirm (I'm not a vmware employee), but it seems this would be a NOGO, for the time being at least. What I do is maintain some PRs that are targeted towards next major, but this is not easy, to say the least...

Copy link
Contributor

Choose a reason for hiding this comment

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

I have not looked at anything else in the code tbh, will wait for Ryan's input

Copy link
Author

Choose a reason for hiding this comment

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

I don't think the change I try to make is possible without breaking compatibility. The MultipleSourcesContainer record has a breaking change as well.

Also, as I changed documented behaviour, I think this would be considered a breaking change event if I were able to keep all public interfaces the same.

Copy link
Contributor

Choose a reason for hiding this comment

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

We had discussed in the original issue that there would be breaking changes and it would need to wait for a major.

@ryanjbaxter
Copy link
Contributor

We would also need to update this documentation:

Suppose that a query matching such a label will provide two secrets as a result: secret-a and secret-b. Both of these secrets have the same property name: color=sea-blue and color=ocean-blue. It is undefined which color will end-up as part of property sources, but the prefix for it will be secret-a.secret-b (concatenated sorted naturally, names of the secrets).

@wind57
Copy link
Contributor

wind57 commented May 6, 2025

can this be closed btw?

@ryanjbaxter ryanjbaxter closed this May 6, 2025
@jnodorp-jaconi jnodorp-jaconi deleted the improve-prefix-handling branch June 2, 2025 09:59
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.

use-name-as-prefix does not work as expected

4 participants