我有问题与etcd v2。 我正在创建使用etcd v2作为K / V存储的配置管理。 现在我确实需要版本历史记录,但看起来v2并不支持它,至少不能从盒子中直接输出。
我一直在阅读他们的API,至少v3有版本/修订的回应。 有什么办法可以让我的版本进入V2的反应?
目前唯一的解决方案是使用带版本号的自定义后缀。 同样使用运行号( POST代替PUT ),但看起来更像ID而不是版本(每次新增或修改都会增加该数)
有任何想法吗? 自定义数据库只存储以前版本的适当解决方案
I have problem with etcd v2. I am creating configuration management which is using etcd v2 as K/V store. Now I do need version history as well but looks like v2 does not support it at least not straight out from the box.
I have been reading their API and at least v3 do have version/revision in response. Is there any way I could get version into v2 response as well?
Only solution currently I find is to use custom suffix with version numbers. Also using running number (POST instead of PUT) but looks like it is more as ID than version (every new or modified will increase that number)
Any ideas? Custom database to store previous versions only proper solution?
最满意答案
发现v2不支持版本(v3中的功能)。 我创建了自己的逻辑来处理版本。
Found out that v2 does not support versions (feature in v3). I created own logic to handle versions.
更多推荐
发布评论