-
Notifications
You must be signed in to change notification settings - Fork 1k
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
use-name-as-prefix
does not work as expected
#1757
Comments
Mmh, seems this is expected behavior:
But IMO the behavior OP describes makes more sense to me, too. |
First of all, @jekkel is correct, the behavior you are seeing is expected, in the sense that we did document it to be like this. Now, if that makes sense or not, is debatable. For example, this is the first time we receive such an issue... I took a pass of the code for about 1h today and it seems that this is indeed doable, but:
If @ryanjbaxter says this is a bug and it's OK to change things in the next major, I might work on this one in the future. |
@wind57 why did we originally decide on the existing behavior? |
I honestly do not recall :( I searched through the PRs history and it seems we did not pay enough attention to this. Now that I look back and think a little, I agree with OP here... |
I also agree with the OP |
If this is a bug, means we can break compatibility in order to fix it? |
Well it doesn't seem like we intended this to work this way right? So in my mind it is a bug. And if by breaking compatibility you mean that we would change the property name then yes. |
the fix could mean altering some public records or methods that we have in place, that is what I meant: if it is OK to "break" those for the sake of fixing this issue |
No in that case we need to wait |
ok, I'll give this one a spin over the weekend to see where it takes me... thx for the feedback. |
Describe the bug
When importing Kubernetes secrets with
use-name-as-prefix
, I would expect the prefix to be the name of the secret. This does not work when using a label selector with duplicate keys:application.yaml
k8s-secrets.yaml
will result in these properties:
Expected result:
Spring Cloud: 2023.0.3
Sample
I built an example application here: https://github.com/jnodorp-jaconi/spring-cloud-kubernetes-reproducer
The text was updated successfully, but these errors were encountered: