lewispeckover / consulator

Import and synchronize your Consul KV data from JSON and YAML
MIT License
32 stars 13 forks source link

Transactions endpoint for populating KV store #11

Open cloudplumber2000 opened 1 year ago

cloudplumber2000 commented 1 year ago

Hi, we're using consulator to populate KV store via YAML files and it works perfectly.

The other part of our deployment tooling is consul-template We're listening for KV updates and doing some actions on update event.

What is happening is that if we want to change multiple values in KV using consulator we are noticing "double" actions by consul-template since the values and keys are updated one at a time multiple events are received.

Luckily Consul supports transactions which I beleive should address our "issue".

Unfortunately I do not have Golang experience at all so I cannot try to write and extend consulator features.

Do you think this would be interesting for you to think about adding as another cli flag maybe?

Best, Marko

markotitel commented 12 months ago

The issue is on consul-template side actually. Reported here: https://github.com/hashicorp/consul-template/issues/1814