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
fccf34cc
Commit
fccf34cc
authored
May 10, 2017
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove various references of dockertools
Also update the bazel files.
parent
4b72d229
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
10 deletions
+11
-10
BUILD
pkg/kubelet/BUILD
+0
-1
BUILD
pkg/kubelet/api/testing/BUILD
+1
-0
helpers.go
pkg/kubelet/container/helpers.go
+3
-1
BUILD
pkg/kubelet/dockershim/BUILD
+2
-0
helpers_test.go
pkg/kubelet/dockershim/helpers_test.go
+0
-2
kubelet_pods.go
pkg/kubelet/kubelet_pods.go
+1
-1
BUILD
pkg/kubelet/kuberuntime/BUILD
+2
-0
runtime.go
pkg/kubelet/sysctl/runtime.go
+1
-2
garbage_collector_test.go
test/e2e_node/garbage_collector_test.go
+1
-1
test_owners.csv
test/test_owners.csv
+0
-2
No files found.
pkg/kubelet/BUILD
View file @
fccf34cc
...
@@ -247,7 +247,6 @@ filegroup(
...
@@ -247,7 +247,6 @@ filegroup(
"//pkg/kubelet/container:all-srcs",
"//pkg/kubelet/container:all-srcs",
"//pkg/kubelet/custommetrics:all-srcs",
"//pkg/kubelet/custommetrics:all-srcs",
"//pkg/kubelet/dockershim:all-srcs",
"//pkg/kubelet/dockershim:all-srcs",
"//pkg/kubelet/dockertools:all-srcs",
"//pkg/kubelet/envvars:all-srcs",
"//pkg/kubelet/envvars:all-srcs",
"//pkg/kubelet/events:all-srcs",
"//pkg/kubelet/events:all-srcs",
"//pkg/kubelet/eviction:all-srcs",
"//pkg/kubelet/eviction:all-srcs",
...
...
pkg/kubelet/api/testing/BUILD
View file @
fccf34cc
...
@@ -18,6 +18,7 @@ go_library(
...
@@ -18,6 +18,7 @@ go_library(
deps = [
deps = [
"//pkg/kubelet/api/v1alpha1/runtime:go_default_library",
"//pkg/kubelet/api/v1alpha1/runtime:go_default_library",
"//pkg/kubelet/util/sliceutils:go_default_library",
"//pkg/kubelet/util/sliceutils:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
],
],
)
)
...
...
pkg/kubelet/container/helpers.go
View file @
fccf34cc
...
@@ -104,7 +104,9 @@ func HashContainer(container *v1.Container) uint64 {
...
@@ -104,7 +104,9 @@ func HashContainer(container *v1.Container) uint64 {
// HashContainerLegacy returns the hash of the container. It is used to compare
// HashContainerLegacy returns the hash of the container. It is used to compare
// the running container with its desired spec.
// the running container with its desired spec.
// TODO: Delete this function after we deprecate dockertools.
// This is used by rktnetes and dockershim (for handling <=1.5 containers).
// TODO: Remove this function when kubernetes version is >=1.8 AND rktnetes
// update its hash function.
func
HashContainerLegacy
(
container
*
v1
.
Container
)
uint64
{
func
HashContainerLegacy
(
container
*
v1
.
Container
)
uint64
{
hash
:=
adler32
.
New
()
hash
:=
adler32
.
New
()
hashutil
.
DeepHashObject
(
hash
,
*
container
)
hashutil
.
DeepHashObject
(
hash
,
*
container
)
...
...
pkg/kubelet/dockershim/BUILD
View file @
fccf34cc
...
@@ -56,6 +56,7 @@ go_library(
...
@@ -56,6 +56,7 @@ go_library(
"//pkg/util/hash:go_default_library",
"//pkg/util/hash:go_default_library",
"//pkg/util/term:go_default_library",
"//pkg/util/term:go_default_library",
"//vendor/github.com/blang/semver:go_default_library",
"//vendor/github.com/blang/semver:go_default_library",
"//vendor/github.com/docker/docker/pkg/jsonmessage:go_default_library",
"//vendor/github.com/docker/engine-api/types:go_default_library",
"//vendor/github.com/docker/engine-api/types:go_default_library",
"//vendor/github.com/docker/engine-api/types/container:go_default_library",
"//vendor/github.com/docker/engine-api/types/container:go_default_library",
"//vendor/github.com/docker/engine-api/types/filters:go_default_library",
"//vendor/github.com/docker/engine-api/types/filters:go_default_library",
...
@@ -105,6 +106,7 @@ go_test(
...
@@ -105,6 +106,7 @@ go_test(
"//pkg/kubelet/util/cache:go_default_library",
"//pkg/kubelet/util/cache:go_default_library",
"//pkg/security/apparmor:go_default_library",
"//pkg/security/apparmor:go_default_library",
"//vendor/github.com/blang/semver:go_default_library",
"//vendor/github.com/blang/semver:go_default_library",
"//vendor/github.com/docker/docker/pkg/jsonmessage:go_default_library",
"//vendor/github.com/docker/engine-api/types:go_default_library",
"//vendor/github.com/docker/engine-api/types:go_default_library",
"//vendor/github.com/docker/engine-api/types/container:go_default_library",
"//vendor/github.com/docker/engine-api/types/container:go_default_library",
"//vendor/github.com/docker/go-connections/nat:go_default_library",
"//vendor/github.com/docker/go-connections/nat:go_default_library",
...
...
pkg/kubelet/dockershim/helpers_test.go
View file @
fccf34cc
...
@@ -139,8 +139,6 @@ func TestLoadSeccompLocalhostProfiles(t *testing.T) {
...
@@ -139,8 +139,6 @@ func TestLoadSeccompLocalhostProfiles(t *testing.T) {
}
}
// TestGetApparmorSecurityOpts tests the logic of generating container apparmor options from sandbox annotations.
// TestGetApparmorSecurityOpts tests the logic of generating container apparmor options from sandbox annotations.
// The actual profile loading logic is tested in dockertools.
// TODO: Migrate the corresponding test to dockershim.
func
TestGetApparmorSecurityOpts
(
t
*
testing
.
T
)
{
func
TestGetApparmorSecurityOpts
(
t
*
testing
.
T
)
{
makeConfig
:=
func
(
profile
string
)
*
runtimeapi
.
LinuxContainerSecurityContext
{
makeConfig
:=
func
(
profile
string
)
*
runtimeapi
.
LinuxContainerSecurityContext
{
return
&
runtimeapi
.
LinuxContainerSecurityContext
{
return
&
runtimeapi
.
LinuxContainerSecurityContext
{
...
...
pkg/kubelet/kubelet_pods.go
View file @
fccf34cc
...
@@ -409,7 +409,7 @@ func (kl *Kubelet) getServiceEnvVarMap(ns string) (map[string]string, error) {
...
@@ -409,7 +409,7 @@ func (kl *Kubelet) getServiceEnvVarMap(ns string) (map[string]string, error) {
func
(
kl
*
Kubelet
)
makeEnvironmentVariables
(
pod
*
v1
.
Pod
,
container
*
v1
.
Container
,
podIP
string
)
([]
kubecontainer
.
EnvVar
,
error
)
{
func
(
kl
*
Kubelet
)
makeEnvironmentVariables
(
pod
*
v1
.
Pod
,
container
*
v1
.
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
kubecontainer.HashContainer
(...). That way, we can still determine whether an
// v1.Container is already running by its hash. (We don't want to restart a container just
// v1.Container is already running by its hash. (We don't want to restart a container just
// because some service changed.)
// because some service changed.)
//
//
...
...
pkg/kubelet/kuberuntime/BUILD
View file @
fccf34cc
...
@@ -81,6 +81,7 @@ go_test(
...
@@ -81,6 +81,7 @@ go_test(
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/api/v1:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/credentialprovider:go_default_library",
"//pkg/kubelet/api/testing:go_default_library",
"//pkg/kubelet/api/testing:go_default_library",
"//pkg/kubelet/api/v1alpha1/runtime:go_default_library",
"//pkg/kubelet/api/v1alpha1/runtime:go_default_library",
"//pkg/kubelet/container:go_default_library",
"//pkg/kubelet/container:go_default_library",
...
@@ -88,6 +89,7 @@ go_test(
...
@@ -88,6 +89,7 @@ go_test(
"//vendor/github.com/golang/mock/gomock:go_default_library",
"//vendor/github.com/golang/mock/gomock:go_default_library",
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
"//vendor/github.com/stretchr/testify/require:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library",
...
...
pkg/kubelet/sysctl/runtime.go
View file @
fccf34cc
...
@@ -27,8 +27,7 @@ import (
...
@@ -27,8 +27,7 @@ import (
const
(
const
(
UnsupportedReason
=
"SysctlUnsupported"
UnsupportedReason
=
"SysctlUnsupported"
// CRI uses semver-compatible API version, while docker does not
// CRI uses semver-compatible API version, while docker does not
// (e.g., 1.24). Append the version with a ".0" so that it works
// (e.g., 1.24). Append the version with a ".0".
// with both the CRI and dockertools comparison logic.
dockerMinimumAPIVersion
=
"1.24.0"
dockerMinimumAPIVersion
=
"1.24.0"
dockerTypeName
=
"docker"
dockerTypeName
=
"docker"
...
...
test/e2e_node/garbage_collector_test.go
View file @
fccf34cc
...
@@ -263,7 +263,7 @@ func dockerContainerGCTest(f *framework.Framework, test testRun) {
...
@@ -263,7 +263,7 @@ func dockerContainerGCTest(f *framework.Framework, test testRun) {
runtime
=
libdocker
.
ConnectToDockerOrDie
(
defaultDockerEndpoint
,
defaultRuntimeRequestTimeoutDuration
,
defaultImagePullProgressDeadline
)
runtime
=
libdocker
.
ConnectToDockerOrDie
(
defaultDockerEndpoint
,
defaultRuntimeRequestTimeoutDuration
,
defaultImagePullProgressDeadline
)
})
})
for
_
,
pod
:=
range
test
.
testPods
{
for
_
,
pod
:=
range
test
.
testPods
{
// Initialize the getContainerNames function to use the
dockertools
api
// Initialize the getContainerNames function to use the
libdocker
api
thisPrefix
:=
pod
.
containerPrefix
thisPrefix
:=
pod
.
containerPrefix
pod
.
getContainerNames
=
func
()
([]
string
,
error
)
{
pod
.
getContainerNames
=
func
()
([]
string
,
error
)
{
relevantContainers
:=
[]
string
{}
relevantContainers
:=
[]
string
{}
...
...
test/test_owners.csv
View file @
fccf34cc
...
@@ -721,8 +721,6 @@ k8s.io/kubernetes/pkg/kubelet/config,mikedanese,1,
...
@@ -721,8 +721,6 @@ k8s.io/kubernetes/pkg/kubelet/config,mikedanese,1,
k8s.io/kubernetes/pkg/kubelet/container,yujuhong,0,
k8s.io/kubernetes/pkg/kubelet/container,yujuhong,0,
k8s.io/kubernetes/pkg/kubelet/custommetrics,kevin-wangzefeng,0,
k8s.io/kubernetes/pkg/kubelet/custommetrics,kevin-wangzefeng,0,
k8s.io/kubernetes/pkg/kubelet/dockershim,zmerlynn,1,
k8s.io/kubernetes/pkg/kubelet/dockershim,zmerlynn,1,
k8s.io/kubernetes/pkg/kubelet/dockertools,deads2k,1,
k8s.io/kubernetes/pkg/kubelet/dockertools/securitycontext,yifan-gu,1,
k8s.io/kubernetes/pkg/kubelet/envvars,rrati,0,
k8s.io/kubernetes/pkg/kubelet/envvars,rrati,0,
k8s.io/kubernetes/pkg/kubelet/eviction,childsb,1,
k8s.io/kubernetes/pkg/kubelet/eviction,childsb,1,
k8s.io/kubernetes/pkg/kubelet/images,caesarxuchao,1,
k8s.io/kubernetes/pkg/kubelet/images,caesarxuchao,1,
...
...
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