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
f5f83b07
Commit
f5f83b07
authored
Mar 04, 2016
by
Joshua Piccari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve go report card by fixing typos in comments
parent
d9d0fdec
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
expiration_cache.go
pkg/client/cache/expiration_cache.go
+1
-1
deployment_controller.go
pkg/controller/deployment/deployment_controller.go
+1
-1
container_bridge.go
pkg/kubelet/container_bridge.go
+1
-1
labels.go
pkg/util/labels/labels.go
+2
-2
util.go
test/e2e/util.go
+1
-1
No files found.
pkg/client/cache/expiration_cache.go
View file @
f5f83b07
...
...
@@ -33,7 +33,7 @@ import (
// *any* item in the cache.
// 3. Time-stamps are stripped off unexpired entries before return
// Note that the ExpirationCache is inherently slower than a normal
// threadSafeStore because it takes a write lock everytime it checks if
// threadSafeStore because it takes a write lock every
time it checks if
// an item has expired.
type
ExpirationCache
struct
{
cacheStorage
ThreadSafeStore
...
...
pkg/controller/deployment/deployment_controller.go
View file @
f5f83b07
...
...
@@ -428,7 +428,7 @@ func (dc *DeploymentController) syncDeployment(key string) error {
if
d
.
Spec
.
Paused
{
// TODO: Implement scaling for paused deployments.
// Dont take any action for paused deployment.
// Don
'
t take any action for paused deployment.
// But keep the status up-to-date.
// Ignore paused deployments
glog
.
V
(
4
)
.
Infof
(
"Updating status only for paused deployment %s/%s"
,
d
.
Namespace
,
d
.
Name
)
...
...
pkg/kubelet/container_bridge.go
View file @
f5f83b07
...
...
@@ -98,7 +98,7 @@ func ensureCbr0(wantCIDR *net.IPNet, promiscuous, babysitDaemons bool) error {
// TODO: Remove this once the kernel bug (#20096) is fixed.
if
promiscuous
{
// Checking if the bridge is in promiscuous mode is as expensive and more brittle than
// simply setting the flag everytime.
// simply setting the flag every
time.
if
err
:=
exec
.
Command
(
"ip"
,
"link"
,
"set"
,
"cbr0"
,
"promisc"
,
"on"
)
.
Run
();
err
!=
nil
{
glog
.
Error
(
err
)
return
err
...
...
pkg/util/labels/labels.go
View file @
f5f83b07
...
...
@@ -57,7 +57,7 @@ func CloneAndRemoveLabel(labels map[string]string, labelKey string) map[string]s
// AddLabel returns a map with the given key and value added to the given map.
func
AddLabel
(
labels
map
[
string
]
string
,
labelKey
string
,
labelValue
string
)
map
[
string
]
string
{
if
labelKey
==
""
{
// Dont need to add a label.
// Don
'
t need to add a label.
return
labels
}
if
labels
==
nil
{
...
...
@@ -110,7 +110,7 @@ func CloneSelectorAndAddLabel(selector *unversioned.LabelSelector, labelKey stri
// AddLabelToSelector returns a selector with the given key and value added to the given selector's MatchLabels.
func
AddLabelToSelector
(
selector
*
unversioned
.
LabelSelector
,
labelKey
string
,
labelValue
string
)
*
unversioned
.
LabelSelector
{
if
labelKey
==
""
{
// Dont need to add a label.
// Don
'
t need to add a label.
return
selector
}
if
selector
.
MatchLabels
==
nil
{
...
...
test/e2e/util.go
View file @
f5f83b07
...
...
@@ -2619,7 +2619,7 @@ func NodeAddresses(nodelist *api.NodeList, addrType api.NodeAddressType) []strin
return
hosts
}
// NodeSSHHosts returns SSH-able host names for all schedulable nodes - this exludes master node.
// NodeSSHHosts returns SSH-able host names for all schedulable nodes - this ex
c
ludes master node.
// It returns an error if it can't find an external IP for every node, though it still returns all
// hosts that it found in that case.
func
NodeSSHHosts
(
c
*
client
.
Client
)
([]
string
,
error
)
{
...
...
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