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
9329e5da
Commit
9329e5da
authored
Apr 02, 2018
by
zouyee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove rktnetes related code
parent
b91146af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
helpers.go
pkg/kubelet/container/helpers.go
+0
-12
No files found.
pkg/kubelet/container/helpers.go
View file @
9329e5da
...
...
@@ -19,7 +19,6 @@ package container
import
(
"bytes"
"fmt"
"hash/adler32"
"hash/fnv"
"strings"
"time"
...
...
@@ -100,17 +99,6 @@ func HashContainer(container *v1.Container) uint64 {
return
uint64
(
hash
.
Sum32
())
}
// HashContainerLegacy returns the hash of the container. It is used to compare
// the running container with its desired spec.
// 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
{
hash
:=
adler32
.
New
()
hashutil
.
DeepHashObject
(
hash
,
*
container
)
return
uint64
(
hash
.
Sum32
())
}
// EnvVarsToMap constructs a map of environment name to value from a slice
// of env vars.
func
EnvVarsToMap
(
envs
[]
EnvVar
)
map
[
string
]
string
{
...
...
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