Skip to content

Commit

Permalink
api: default to V3 capability
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Mar 2, 2017
1 parent 763aef8 commit 5da5b83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions etcdserver/api/capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ var (
plog = capnslog.NewPackageLogger("github.com/coreos/etcd", "etcdserver/api")

// capabilityMaps is a static map of version to capability map.
// the base capabilities is the set of capability 2.0 supports.
capabilityMaps = map[string]map[Capability]bool{
"2.3.0": {AuthCapability: true},
"3.0.0": {AuthCapability: true, V3rpcCapability: true},
"3.1.0": {AuthCapability: true, V3rpcCapability: true},
"3.2.0": {AuthCapability: true, V3rpcCapability: true},
Expand All @@ -49,7 +47,10 @@ var (
)

func init() {
enabledMap = make(map[Capability]bool)
enabledMap = map[Capability]bool{
AuthCapability: true,
V3rpcCapability: true,
}
}

// UpdateCapability updates the enabledMap when the cluster version increases.
Expand Down

0 comments on commit 5da5b83

Please sign in to comment.