Skip to content
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

Support Dynamic newKey values when using glob in ChangeSpringPropertyKey/Value #636

Open
jrgleason opened this issue Nov 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jrgleason
Copy link

What problem are you trying to solve?

More information here

Basically I have a property that can be given a client name something like

spring:
  datasource:
    source-a:
      url: ...
    source-b:
      url: ...

This could also be in properties like

spring.datasource.source-a.url: ...
spring.datasource.source-b.url: ...

I would like to change the url key to newurl

However ChangeSpringPropertyKey and ChangeSpringPropertyValue only support globs for the oldKey not the newKey. This becomes a problem as there is 2 sources and the names can be defined by the app developer

Describe the solution you'd like

In a perfect world the newKey/newValue would be able to support globs as well as the old one.

Have you considered any alternatives or workarounds?

Currently we just use the YAML ChangeKey and warn properties users they may need to manually fix the files.

@jrgleason jrgleason added the enhancement New feature or request label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant