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
d4c17223
Commit
d4c17223
authored
Apr 23, 2020
by
galal-hussein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update kine
parent
2fcde2e2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
2 deletions
+10
-2
go.mod
go.mod
+1
-1
go.sum
go.sum
+2
-0
mysql.go
vendor/github.com/rancher/kine/pkg/drivers/mysql/mysql.go
+2
-0
pgsql.go
vendor/github.com/rancher/kine/pkg/drivers/pgsql/pgsql.go
+1
-0
logstructured.go
...ithub.com/rancher/kine/pkg/logstructured/logstructured.go
+3
-0
modules.txt
vendor/modules.txt
+1
-1
No files found.
go.mod
View file @
d4c17223
...
...
@@ -99,7 +99,7 @@ require (
github.com/rakelkar/gonetsh v0.0.0-20190719023240-501daadcadf8 // indirect
github.com/rancher/dynamiclistener v0.2.0
github.com/rancher/helm-controller v0.4.1
github.com/rancher/kine v0.3.
5
github.com/rancher/kine v0.3.
6-0.20200422224205-0a0f5b924129
github.com/rancher/remotedialer v0.2.0
github.com/rancher/wrangler v0.4.0
github.com/rancher/wrangler-api v0.4.0
...
...
go.sum
View file @
d4c17223
...
...
@@ -722,6 +722,8 @@ github.com/rancher/helm-controller v0.4.1 h1:AbI3zXy2Qtw4e4A6IkxKozgnm6T3KKnUo6E
github.com/rancher/helm-controller v0.4.1/go.mod h1:194LHuZRrxcD82bG1rJtOWsw98U4JbPhDWqvL7l3PAw=
github.com/rancher/kine v0.3.5 h1:Tm4eOtejpnzs1WFBrXj76lCLvX9czLlTkgqUk9luCQk=
github.com/rancher/kine v0.3.5/go.mod h1:xEMl0tLCva9/9me7mXJ3m9Vo6yqHgC4OU3NiK4CPrGQ=
github.com/rancher/kine v0.3.6-0.20200422224205-0a0f5b924129 h1:4HYvCG8+pfkBlpYLv/5ZOdxagg3jTszMOqMjamMQ0hA=
github.com/rancher/kine v0.3.6-0.20200422224205-0a0f5b924129/go.mod h1:xEMl0tLCva9/9me7mXJ3m9Vo6yqHgC4OU3NiK4CPrGQ=
github.com/rancher/kubernetes v1.17.5-k3s1 h1:rE+lSQ7SszfLZ4KB94FPQtvqQPYoU6Jwul8HHBPqQcY=
github.com/rancher/kubernetes v1.17.5-k3s1/go.mod h1:4A7Bm7SHrj2SCb9vxMBil1wu2uJy3k1zSjoD43SS8Zg=
github.com/rancher/kubernetes/staging/src/k8s.io/api v1.17.5-k3s1 h1:/6jG49ioPbxPlk+wY3XQTj3JjVoGuE/5Ozx3tZGk32g=
...
...
vendor/github.com/rancher/kine/pkg/drivers/mysql/mysql.go
View file @
d4c17223
...
...
@@ -35,6 +35,7 @@ var (
);`
,
}
nameIdx
=
"create index kine_name_index on kine (name)"
nameIDIdx
=
"create index kine_name_id_index on kine (name,id)"
revisionIdx
=
"create unique index kine_name_prev_revision_uindex on kine (name, prev_revision)"
createDB
=
"create database if not exists "
)
...
...
@@ -87,6 +88,7 @@ func setup(db *sql.DB) error {
// check if duplicate indexes
indexes
:=
[]
string
{
nameIdx
,
nameIDIdx
,
revisionIdx
}
for
_
,
idx
:=
range
indexes
{
...
...
vendor/github.com/rancher/kine/pkg/drivers/pgsql/pgsql.go
View file @
d4c17223
...
...
@@ -35,6 +35,7 @@ var (
old_value bytea
);`
,
`CREATE INDEX IF NOT EXISTS kine_name_index ON kine (name)`
,
`CREATE INDEX IF NOT EXISTS kine_name_id_index ON kine (name,id)`
,
`CREATE UNIQUE INDEX IF NOT EXISTS kine_name_prev_revision_uindex ON kine (name, prev_revision)`
,
}
createDB
=
"create database "
...
...
vendor/github.com/rancher/kine/pkg/logstructured/logstructured.go
View file @
d4c17223
...
...
@@ -295,6 +295,7 @@ func (l *LogStructured) ttlEvents(ctx context.Context) chan *server.Event {
func
(
l
*
LogStructured
)
ttl
(
ctx
context
.
Context
)
{
// vary naive TTL support
mutex
:=
&
sync
.
Mutex
{}
for
event
:=
range
l
.
ttlEvents
(
ctx
)
{
go
func
(
event
*
server
.
Event
)
{
select
{
...
...
@@ -302,7 +303,9 @@ func (l *LogStructured) ttl(ctx context.Context) {
return
case
<-
time
.
After
(
time
.
Duration
(
event
.
KV
.
Lease
)
*
time
.
Second
)
:
}
mutex
.
Lock
()
l
.
Delete
(
ctx
,
event
.
KV
.
Key
,
event
.
KV
.
ModRevision
)
mutex
.
Unlock
()
}(
event
)
}
}
...
...
vendor/modules.txt
View file @
d4c17223
...
...
@@ -726,7 +726,7 @@ github.com/rancher/helm-controller/pkg/generated/informers/externalversions/helm
github.com/rancher/helm-controller/pkg/generated/informers/externalversions/internalinterfaces
github.com/rancher/helm-controller/pkg/generated/listers/helm.cattle.io/v1
github.com/rancher/helm-controller/pkg/helm
# github.com/rancher/kine v0.3.
5
# github.com/rancher/kine v0.3.
6-0.20200422224205-0a0f5b924129
github.com/rancher/kine/pkg/broadcaster
github.com/rancher/kine/pkg/client
github.com/rancher/kine/pkg/drivers/dqlite
...
...
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