Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
91329652
Commit
91329652
authored
Oct 27, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update etcd Godeps to 3.0.13
parent
bb2c36a7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
18 deletions
+24
-18
Godeps.json
Godeps/Godeps.json
+0
-0
store.go
vendor/github.com/coreos/etcd/auth/store.go
+5
-0
server.go
vendor/github.com/coreos/etcd/etcdserver/server.go
+7
-13
kvstore.go
vendor/github.com/coreos/etcd/mvcc/kvstore.go
+7
-0
node.go
vendor/github.com/coreos/etcd/raft/node.go
+1
-1
raft.pb.go
vendor/github.com/coreos/etcd/raft/raftpb/raft.pb.go
+1
-1
raft.proto
vendor/github.com/coreos/etcd/raft/raftpb/raft.proto
+2
-2
version.go
vendor/github.com/coreos/etcd/version/version.go
+1
-1
No files found.
Godeps/Godeps.json
View file @
91329652
This diff is collapsed.
Click to expand it.
vendor/github.com/coreos/etcd/auth/store.go
View file @
91329652
...
@@ -603,6 +603,11 @@ func (as *authStore) isOpPermitted(userName string, key, rangeEnd []byte, permTy
...
@@ -603,6 +603,11 @@ func (as *authStore) isOpPermitted(userName string, key, rangeEnd []byte, permTy
return
false
return
false
}
}
// root role should have permission on all ranges
if
hasRootRole
(
user
)
{
return
true
}
if
as
.
isRangeOpPermitted
(
tx
,
userName
,
key
,
rangeEnd
,
permTyp
)
{
if
as
.
isRangeOpPermitted
(
tx
,
userName
,
key
,
rangeEnd
,
permTyp
)
{
return
true
return
true
}
}
...
...
vendor/github.com/coreos/etcd/etcdserver/server.go
View file @
91329652
...
@@ -154,13 +154,13 @@ type Server interface {
...
@@ -154,13 +154,13 @@ type Server interface {
// EtcdServer is the production implementation of the Server interface
// EtcdServer is the production implementation of the Server interface
type
EtcdServer
struct
{
type
EtcdServer
struct
{
//
r and inflightSnapshots must be the first elements to keep 64-bit alignment for atomic
//
inflightSnapshots holds count the number of snapshots currently inflight.
// access to fields
inflightSnapshots
int64
// must use atomic operations to access; keep 64-bit aligned.
appliedIndex
uint64
// must use atomic operations to access; keep 64-bit aligned.
// co
unt the number of inflight snapshots.
// co
nsistIndex used to hold the offset of current executing entry
//
MUST use atomic operation to access this field
.
//
It is initialized to 0 before executing any entry
.
inflightSnapshots
int64
consistIndex
consistentIndex
// must use atomic operations to access; keep 64-bit aligned.
Cfg
*
ServerConfig
Cfg
*
ServerConfig
readych
chan
struct
{}
readych
chan
struct
{}
r
raftNode
r
raftNode
...
@@ -195,10 +195,6 @@ type EtcdServer struct {
...
@@ -195,10 +195,6 @@ type EtcdServer struct {
// compactor is used to auto-compact the KV.
// compactor is used to auto-compact the KV.
compactor
*
compactor
.
Periodic
compactor
*
compactor
.
Periodic
// consistent index used to hold the offset of current executing entry
// It is initialized to 0 before executing any entry.
consistIndex
consistentIndex
// peerRt used to send requests (version, lease) to peers.
// peerRt used to send requests (version, lease) to peers.
peerRt
http
.
RoundTripper
peerRt
http
.
RoundTripper
reqIDGen
*
idutil
.
Generator
reqIDGen
*
idutil
.
Generator
...
@@ -212,8 +208,6 @@ type EtcdServer struct {
...
@@ -212,8 +208,6 @@ type EtcdServer struct {
// wg is used to wait for the go routines that depends on the server state
// wg is used to wait for the go routines that depends on the server state
// to exit when stopping the server.
// to exit when stopping the server.
wg
sync
.
WaitGroup
wg
sync
.
WaitGroup
appliedIndex
uint64
}
}
// NewServer creates a new EtcdServer from the supplied configuration. The
// NewServer creates a new EtcdServer from the supplied configuration. The
...
...
vendor/github.com/coreos/etcd/mvcc/kvstore.go
View file @
91329652
...
@@ -408,6 +408,13 @@ func (s *store) restore() error {
...
@@ -408,6 +408,13 @@ func (s *store) restore() error {
s
.
currentRev
=
rev
s
.
currentRev
=
rev
}
}
// keys in the range [compacted revision -N, compaction] might all be deleted due to compaction.
// the correct revision should be set to compaction revision in the case, not the largest revision
// we have seen.
if
s
.
currentRev
.
main
<
s
.
compactMainRev
{
s
.
currentRev
.
main
=
s
.
compactMainRev
}
for
key
,
lid
:=
range
keyToLease
{
for
key
,
lid
:=
range
keyToLease
{
if
s
.
le
==
nil
{
if
s
.
le
==
nil
{
panic
(
"no lessor to attach lease"
)
panic
(
"no lessor to attach lease"
)
...
...
vendor/github.com/coreos/etcd/raft/node.go
View file @
91329652
...
@@ -38,7 +38,7 @@ var (
...
@@ -38,7 +38,7 @@ var (
// SoftState provides state that is useful for logging and debugging.
// SoftState provides state that is useful for logging and debugging.
// The state is volatile and does not need to be persisted to the WAL.
// The state is volatile and does not need to be persisted to the WAL.
type
SoftState
struct
{
type
SoftState
struct
{
Lead
uint64
Lead
uint64
// must use atomic operations to access; keep 64-bit aligned.
RaftState
StateType
RaftState
StateType
}
}
...
...
vendor/github.com/coreos/etcd/raft/raftpb/raft.pb.go
View file @
91329652
...
@@ -183,9 +183,9 @@ func (x *ConfChangeType) UnmarshalJSON(data []byte) error {
...
@@ -183,9 +183,9 @@ func (x *ConfChangeType) UnmarshalJSON(data []byte) error {
func
(
ConfChangeType
)
EnumDescriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptorRaft
,
[]
int
{
2
}
}
func
(
ConfChangeType
)
EnumDescriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptorRaft
,
[]
int
{
2
}
}
type
Entry
struct
{
type
Entry
struct
{
Type
EntryType
`protobuf:"varint,1,opt,name=Type,json=type,enum=raftpb.EntryType" json:"Type"`
Term
uint64
`protobuf:"varint,2,opt,name=Term,json=term" json:"Term"`
Term
uint64
`protobuf:"varint,2,opt,name=Term,json=term" json:"Term"`
Index
uint64
`protobuf:"varint,3,opt,name=Index,json=index" json:"Index"`
Index
uint64
`protobuf:"varint,3,opt,name=Index,json=index" json:"Index"`
Type
EntryType
`protobuf:"varint,1,opt,name=Type,json=type,enum=raftpb.EntryType" json:"Type"`
Data
[]
byte
`protobuf:"bytes,4,opt,name=Data,json=data" json:"Data,omitempty"`
Data
[]
byte
`protobuf:"bytes,4,opt,name=Data,json=data" json:"Data,omitempty"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
}
}
...
...
vendor/github.com/coreos/etcd/raft/raftpb/raft.proto
View file @
91329652
...
@@ -15,9 +15,9 @@ enum EntryType {
...
@@ -15,9 +15,9 @@ enum EntryType {
}
}
message
Entry
{
message
Entry
{
optional
uint64
Term
=
2
[(
gogoproto.nullable
)
=
false
];
// must be 64-bit aligned for atomic operations
optional
uint64
Index
=
3
[(
gogoproto.nullable
)
=
false
];
// must be 64-bit aligned for atomic operations
optional
EntryType
Type
=
1
[(
gogoproto.nullable
)
=
false
];
optional
EntryType
Type
=
1
[(
gogoproto.nullable
)
=
false
];
optional
uint64
Term
=
2
[(
gogoproto.nullable
)
=
false
];
optional
uint64
Index
=
3
[(
gogoproto.nullable
)
=
false
];
optional
bytes
Data
=
4
;
optional
bytes
Data
=
4
;
}
}
...
...
vendor/github.com/coreos/etcd/version/version.go
View file @
91329652
...
@@ -29,7 +29,7 @@ import (
...
@@ -29,7 +29,7 @@ import (
var
(
var
(
// MinClusterVersion is the min cluster version this etcd binary is compatible with.
// MinClusterVersion is the min cluster version this etcd binary is compatible with.
MinClusterVersion
=
"2.3.0"
MinClusterVersion
=
"2.3.0"
Version
=
"3.0.1
2
"
Version
=
"3.0.1
3
"
// Git SHA Value will be set during build
// Git SHA Value will be set during build
GitSHA
=
"Not provided (use ./build instead of go build)"
GitSHA
=
"Not provided (use ./build instead of go build)"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment