Giter Site home page Giter Site logo

consulator's People

Contributors

lewispeckover avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

consulator's Issues

Explain `[ path ...]`

I'm a little confused of the option path that can be supplied to consulator import ... as well as (by the looks) just consulator too (_judging from the --help).

Can you explain how path is used when many of the -yaml, -json, etc options of consulator import clearly state they read the data from STDIN.

I look at the code a bit but didn't understand what was happening with c.flags.Args().

Transactions endpoint for populating KV store

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

format error

my yaml file:

docker:
    - image: ubuntu:14.04
    - image: mongo:2.6.8
      command: [mongod, --smallfiles]
    - image: postgres:9.4.1

i run this command:

consulator import -glue=, /usr/local/ns-configs/dev/

but the result is Error: Invalid type map[string]interface {} in array. Only strings, numbers and boolean values are supported. did it support this format?

Support for array of objects

It looks like consulator doesn't understand hot to import the following:

config:
  foo:
    rules:
      - foo: bar
        exp:
          type: A

You end up with an err rlike:

Error: Invalid type map[string]interface {} in array. Only strings, numbers and boolean values are supported.

Is this a KP or intentional?

Export support?

Would you consider the addition of an "export" feature and associated command? The idea basically to mirror the import facility. Take the contents of Consul and export it as either JSON or YAML.

I'm hesitant to make sync a 3-way sync; but if you are open to the above we can explore that layer or just make this a "user problem" to deal with.

Optional purge / delete

I've just started playing with the tool and noticed that all the previously existing keys got purged from Consul prior to importing. I found out that if I specify -prefix then it will delete only inside that path which helps, but I can still imagine scenario when I have >1 source of data writing to the same path and I would prefer the keys to not to be purged.
Would you consider making delete (purge) optional, so that one would have to add, say -delete option?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.