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
439920e5
Commit
439920e5
authored
Sep 27, 2019
by
galal-hussein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vendor update and go.mod update
parent
2ea7a717
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
go.mod
go.mod
+1
-2
go.sum
go.sum
+2
-0
io.go
vendor/github.com/rancher/dynamiclistener/cert/io.go
+10
-8
modules.txt
vendor/modules.txt
+1
-1
No files found.
go.mod
View file @
439920e5
...
...
@@ -23,7 +23,6 @@ replace (
github.com/prometheus/client_model => github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
github.com/prometheus/common => github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
github.com/prometheus/procfs => github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
github.com/rancher/dynamiclistener => github.com/erikwilson/rancher-dynamiclistener v0.0.0-20190717164634-c08b499d1719
github.com/rancher/kine => github.com/ibuildthecloud/kine v0.1.0
k8s.io/api => github.com/rancher/kubernetes/staging/src/k8s.io/api v1.16.0-k3s.1
k8s.io/apiextensions-apiserver => github.com/rancher/kubernetes/staging/src/k8s.io/apiextensions-apiserver v1.16.0-k3s.1
...
...
@@ -92,7 +91,7 @@ require (
github.com/opencontainers/runc v1.0.0-rc2.0.20190611121236-6cc515888830
github.com/pkg/errors v0.8.1
github.com/rakelkar/gonetsh v0.0.0-20190719023240-501daadcadf8 // indirect
github.com/rancher/dynamiclistener v0.0.0-20190
717164634-c08b499d1719
github.com/rancher/dynamiclistener v0.0.0-20190
926205813-e2ac9e2c193d
github.com/rancher/helm-controller v0.2.2
github.com/rancher/kine v0.0.0-00010101000000-000000000000
github.com/rancher/remotedialer v0.2.0
...
...
go.sum
View file @
439920e5
...
...
@@ -558,6 +558,8 @@ github.com/rancher/containerd v1.3.0-k3s.1 h1:8dz25shb4egTLl0nOXQdtllx20LEXsuOs4
github.com/rancher/containerd v1.3.0-k3s.1/go.mod h1:ZMfzmqce2Z+QSEqdHMfeJs1TZ/UeJ1aDrazjpQT4ehM=
github.com/rancher/cri-tools v1.16.0-k3s.1 h1:cv/iVFkfvDLfpSqGFwgyQbMKLGRzcXo8AALUsd8s5qE=
github.com/rancher/cri-tools v1.16.0-k3s.1/go.mod h1:TEKhKv2EJIZp+p9jnEy4C63g8CosJzsI4kyKKkHag+8=
github.com/rancher/dynamiclistener v0.0.0-20190926205813-e2ac9e2c193d h1:BPBA86IVuNX/S2g7Kry+jXcuftCWPRLpad1iyd1nP20=
github.com/rancher/dynamiclistener v0.0.0-20190926205813-e2ac9e2c193d/go.mod h1:vNqDnGTkrX8tiBUevkvjZoQoiZOjaahVbMaYRIl25l0=
github.com/rancher/flannel v0.11.0-k3s.1 h1:mIwnfWDafjzQgFkZeJ1AkFrrAT3EdBaA1giE0eLJKo8=
github.com/rancher/flannel v0.11.0-k3s.1/go.mod h1:Hn4ZV+eq0LhLZP63xZnxdGwXEoRSxs5sxELxu27M3UA=
github.com/rancher/helm-controller v0.2.2 h1:MUqisy53/Ay1EYOF2uTCYBbGpgtZLNKKrI01BdxIbQo=
...
...
vendor/github.com/rancher/dynamiclistener/cert/io.go
View file @
439920e5
...
...
@@ -86,14 +86,16 @@ func WriteKey(keyPath string, data []byte) error {
// LoadOrGenerateKeyFile looks for a key in the file at the given path. If it
// can't find one, it will generate a new key and store it there.
func
LoadOrGenerateKeyFile
(
keyPath
string
)
(
data
[]
byte
,
wasGenerated
bool
,
err
error
)
{
loadedData
,
err
:=
ioutil
.
ReadFile
(
keyPath
)
// Call verifyKeyData to ensure the file wasn't empty/corrupt.
if
err
==
nil
&&
verifyKeyData
(
loadedData
)
{
return
loadedData
,
false
,
err
}
if
!
os
.
IsNotExist
(
err
)
{
return
nil
,
false
,
fmt
.
Errorf
(
"error loading key from %s: %v"
,
keyPath
,
err
)
func
LoadOrGenerateKeyFile
(
keyPath
string
,
force
bool
)
(
data
[]
byte
,
wasGenerated
bool
,
err
error
)
{
if
!
force
{
loadedData
,
err
:=
ioutil
.
ReadFile
(
keyPath
)
// Call verifyKeyData to ensure the file wasn't empty/corrupt.
if
err
==
nil
&&
verifyKeyData
(
loadedData
)
{
return
loadedData
,
false
,
err
}
if
!
os
.
IsNotExist
(
err
)
{
return
nil
,
false
,
fmt
.
Errorf
(
"error loading key from %s: %v"
,
keyPath
,
err
)
}
}
generatedData
,
err
:=
MakeEllipticPrivateKeyPEM
()
...
...
vendor/modules.txt
View file @
439920e5
...
...
@@ -742,7 +742,7 @@ github.com/prometheus/procfs/internal/util
# github.com/rakelkar/gonetsh v0.0.0-20190719023240-501daadcadf8
github.com/rakelkar/gonetsh/netroute
github.com/rakelkar/gonetsh/netsh
# github.com/rancher/dynamiclistener v0.0.0-20190
717164634-c08b499d1719 => github.com/erikwilson/rancher-dynamiclistener v0.0.0-20190717164634-c08b499d1719
# github.com/rancher/dynamiclistener v0.0.0-20190
926205813-e2ac9e2c193d
github.com/rancher/dynamiclistener
github.com/rancher/dynamiclistener/cert
# github.com/rancher/helm-controller v0.2.2
...
...
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