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 appending to array and resetting value when loading multiple configs #4136

Open
3 of 5 tasks
renom opened this issue Oct 2, 2024 · 0 comments
Open
3 of 5 tasks
Labels
feat New feature or request.

Comments

@renom
Copy link

renom commented Oct 2, 2024

Preflight checklist

Ory Network Project

No response

Describe your problem

It's impossible to append to the array or reset the value when providing multiple --config:

someCommand --config file/a.yml --config file/b.yml

Describe your ideal solution

There's yaml tags in docker-compose for a similar use case:

  • !reset (removes a value that is already set)
  • !override (replaces an array instead of merging, the default behavior is merging)

Docs: https://docs.docker.com/reference/compose-file/merge/

Ory Kratos could support something like:

  • !reset (remove a value)
  • !append or !merge (merge arrays instead of replacing values)

Workarounds or alternatives

Version

1.3.0

Additional Context

No response

@renom renom added the feat New feature or request. label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant