Etcd v2修订版/版本(Etcd v2 revision/version)

编程入门 行业动态 更新时间:2024-10-27 01:25:03
Etcd v2修订版/版本(Etcd v2 revision/version)

我有问题与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.

更多推荐

本文发布于:2023-07-29 18:25:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1318597.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:修订版   版本   Etcd   revision   version

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!