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
3876972d
Commit
3876972d
authored
Apr 24, 2016
by
Random-Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up go-dockerclient reference.
parent
87148737
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
27 deletions
+2
-27
verify-godeps.sh
hack/verify-godeps.sh
+0
-9
fuzzer.go
pkg/api/testing/fuzzer.go
+0
-16
docker.go
pkg/kubelet/dockertools/docker.go
+1
-1
kubelet.go
pkg/kubelet/kubelet.go
+1
-1
No files found.
hack/verify-godeps.sh
View file @
3876972d
...
@@ -95,13 +95,4 @@ if ! _out="$(diff -Naupr --ignore-matching-lines='^\s*\"GoVersion\":' --ignore-m
...
@@ -95,13 +95,4 @@ if ! _out="$(diff -Naupr --ignore-matching-lines='^\s*\"GoVersion\":' --ignore-m
exit
1
exit
1
fi
fi
# Godeps/_workstapces/src/github.com/fsouza/go-dockerclient/testing/data/symlink'
# is an intentionally broken symlink. Linux can use --no-dereference. OS X cannot.
# So we --exclude='symlink' so diff -r doesn't die following a bad symlink.
if
!
_out
=
"
$(
diff
-Naupr
--exclude
=
'symlink'
${
KUBE_ROOT
}
/Godeps/_workspace/src
${
_kubetmp
}
/Godeps/_workspace/src
)
"
;
then
echo
"Your godeps changes are not reproducible"
echo
"
${
_out
}
"
exit
1
fi
# ex: ts=2 sw=2 et filetype=sh
# ex: ts=2 sw=2 et filetype=sh
pkg/api/testing/fuzzer.go
View file @
3876972d
...
@@ -23,7 +23,6 @@ import (
...
@@ -23,7 +23,6 @@ import (
"strconv"
"strconv"
"testing"
"testing"
docker
"github.com/fsouza/go-dockerclient"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/resource"
"k8s.io/kubernetes/pkg/api/resource"
"k8s.io/kubernetes/pkg/api/testapi"
"k8s.io/kubernetes/pkg/api/testapi"
...
@@ -191,21 +190,6 @@ func FuzzerFor(t *testing.T, version unversioned.GroupVersion, src rand.Source)
...
@@ -191,21 +190,6 @@ func FuzzerFor(t *testing.T, version unversioned.GroupVersion, src rand.Source)
*
j
=
t
*
j
=
t
}
}
},
},
func
(
pb
map
[
docker
.
Port
][]
docker
.
PortBinding
,
c
fuzz
.
Continue
)
{
// This is necessary because keys with nil values get omitted.
// TODO: Is this a bug?
pb
[
docker
.
Port
(
c
.
RandString
())]
=
[]
docker
.
PortBinding
{
{
c
.
RandString
(),
c
.
RandString
()},
{
c
.
RandString
(),
c
.
RandString
()},
}
},
func
(
pm
map
[
string
]
docker
.
PortMapping
,
c
fuzz
.
Continue
)
{
// This is necessary because keys with nil values get omitted.
// TODO: Is this a bug?
pm
[
c
.
RandString
()]
=
docker
.
PortMapping
{
c
.
RandString
()
:
c
.
RandString
(),
}
},
func
(
q
*
api
.
ResourceRequirements
,
c
fuzz
.
Continue
)
{
func
(
q
*
api
.
ResourceRequirements
,
c
fuzz
.
Continue
)
{
randomQuantity
:=
func
()
resource
.
Quantity
{
randomQuantity
:=
func
()
resource
.
Quantity
{
var
q
resource
.
Quantity
var
q
resource
.
Quantity
...
...
pkg/kubelet/dockertools/docker.go
View file @
3876972d
...
@@ -55,7 +55,7 @@ const (
...
@@ -55,7 +55,7 @@ const (
minQuotaPerod
=
1000
minQuotaPerod
=
1000
)
)
// DockerInterface is an abstract interface for testability. It abstracts the interface of docker
.C
lient.
// DockerInterface is an abstract interface for testability. It abstracts the interface of docker
c
lient.
type
DockerInterface
interface
{
type
DockerInterface
interface
{
ListContainers
(
options
dockertypes
.
ContainerListOptions
)
([]
dockertypes
.
Container
,
error
)
ListContainers
(
options
dockertypes
.
ContainerListOptions
)
([]
dockertypes
.
Container
,
error
)
InspectContainer
(
id
string
)
(
*
dockertypes
.
ContainerJSON
,
error
)
InspectContainer
(
id
string
)
(
*
dockertypes
.
ContainerJSON
,
error
)
...
...
pkg/kubelet/kubelet.go
View file @
3876972d
...
@@ -1532,7 +1532,7 @@ func (kl *Kubelet) getServiceEnvVarMap(ns string) (map[string]string, error) {
...
@@ -1532,7 +1532,7 @@ func (kl *Kubelet) getServiceEnvVarMap(ns string) (map[string]string, error) {
// Make the environment variables for a pod in the given namespace.
// Make the environment variables for a pod in the given namespace.
func
(
kl
*
Kubelet
)
makeEnvironmentVariables
(
pod
*
api
.
Pod
,
container
*
api
.
Container
,
podIP
string
)
([]
kubecontainer
.
EnvVar
,
error
)
{
func
(
kl
*
Kubelet
)
makeEnvironmentVariables
(
pod
*
api
.
Pod
,
container
*
api
.
Container
,
podIP
string
)
([]
kubecontainer
.
EnvVar
,
error
)
{
var
result
[]
kubecontainer
.
EnvVar
var
result
[]
kubecontainer
.
EnvVar
// Note: These are added to the docker
.
Config, but are not included in the checksum computed
// Note: These are added to the docker
Config, but are not included in the checksum computed
// by dockertools.BuildDockerName(...). That way, we can still determine whether an
// by dockertools.BuildDockerName(...). That way, we can still determine whether an
// api.Container is already running by its hash. (We don't want to restart a container just
// api.Container is already running by its hash. (We don't want to restart a container just
// because some service changed.)
// because some service changed.)
...
...
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