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

Ability to match multiple elements in an array #8

Open
aeijdenberg opened this issue Jul 31, 2017 · 1 comment
Open

Ability to match multiple elements in an array #8

aeijdenberg opened this issue Jul 31, 2017 · 1 comment
Labels

Comments

@aeijdenberg
Copy link

We would find it useful to be able to apply a replace pattern to all elements in an array.

For example:

- type: replace
  path: /instance_groups/*/vm_extensions?/-
  value: foo

This would be not be allowed as the last element - only as an intermediate one, and is only valid for the replace and remove operations.

@dsabeti
Copy link
Contributor

dsabeti commented Jan 5, 2018

Another use case for this: cf-deployment has some ops-files that change configuration for all instance groups in a deployment. For example, our ops-file for renaming the BOSH network updates each instance group to use a different network name.

When a new instance group gets added -- in cf-deployment, or because of an ops-file -- it's easy to forget to update the ops-file to change the new instance group. In fact, we had to implement this fix recently to rename the network for a new instance group. Because we forgot to do this change in the same release that added the adapter instance group, some operators experienced downtime when they deployed.

If we had wildcards in ops-file, we could completely avoid this problem and add instance groups more easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants