You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# "ETCDCTL_API=2" is set by default
$ ETCDCTL_API=2 ./bin/etcdctl set foo bar
bar
$ ./bin/etcdctl set foo bar
bar
$ ETCDCTL_API=3 ./bin/etcdctl set foo bar
Error: unknown command"set"for"etcdctl"
$ ETCDCTL_API=2 ./bin/etcdctl put foo bar
No help topic for'put'
$ ./bin/etcdctl put foo bar
No help topic for'put'# for v3, "ETCDCTL_API=3" needs be set explicitly
$ ETCDCTL_API=3 ./bin/etcdctl put foo bar
OK
After (>= v3.4.0), we want to set "ETCDCTL_API=3" by default
$ ETCDCTL_API=2 ./bin/etcdctl set foo bar
bar
# "ETCDCTL_API=3" is set by default
$ ./bin/etcdctl set foo bar
Error: unknown command"set"for"etcdctl"
$ ETCDCTL_API=3 ./bin/etcdctl set foo bar
Error: unknown command"set"for"etcdctl"
# for v2, "ETCDCTL_API=2" needs be set explicitly
$ ETCDCTL_API=2 ./bin/etcdctl put foo bar
No help topic for'put'
$ ./bin/etcdctl put foo bar
OK
$ ETCDCTL_API=3 ./bin/etcdctl put foo bar
OK
v3.0.0 was out 2 years ago https://github.com/coreos/etcd/releases/tag/v3.0.0. v2 is officially deprecated in Container Linux https://coreos.com/blog/toward-etcd-v3-in-container-linux.html. While we still do keep all v2 features plus v2 API wrapper backed by v3 storage, default API should now be v3.
Before (< v3.4.0)
After (>= v3.4.0), we want to set
"ETCDCTL_API=3"
by defaultIn general, community feedback is positive:
Please let us know if anybody has other concerns.
The text was updated successfully, but these errors were encountered: