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
afdbad07
Unverified
Commit
afdbad07
authored
May 11, 2016
by
Ed Robinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrects some misspellings in comments
This should help to make
https://goreportcard.com/report/k8s.io/kubernetes#misspell
look a little nicer.
parent
22dfaef9
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
plugin.go
pkg/client/restclient/plugin.go
+1
-1
client_config_test.go
pkg/client/unversioned/clientcmd/client_config_test.go
+1
-1
loader.go
pkg/client/unversioned/clientcmd/loader.go
+1
-1
attach_detach_volume_cache.go
pkg/controller/volume/cache/attach_detach_volume_cache.go
+1
-1
factory.go
pkg/kubectl/cmd/util/factory.go
+1
-1
kubenet_linux.go
pkg/kubelet/network/kubenet/kubenet_linux.go
+1
-1
ports.go
pkg/master/ports/ports.go
+1
-1
protobuf.go
pkg/runtime/serializer/protobuf/protobuf.go
+1
-1
No files found.
pkg/client/restclient/plugin.go
View file @
afdbad07
...
@@ -37,7 +37,7 @@ type AuthProvider interface {
...
@@ -37,7 +37,7 @@ type AuthProvider interface {
// Factory generates an AuthProvider plugin.
// Factory generates an AuthProvider plugin.
// clusterAddress is the address of the current cluster.
// clusterAddress is the address of the current cluster.
// config is the inital configuration for this plugin.
// config is the init
i
al configuration for this plugin.
// persister allows the plugin to save updated configuration.
// persister allows the plugin to save updated configuration.
type
Factory
func
(
clusterAddress
string
,
config
map
[
string
]
string
,
persister
AuthProviderConfigPersister
)
(
AuthProvider
,
error
)
type
Factory
func
(
clusterAddress
string
,
config
map
[
string
]
string
,
persister
AuthProviderConfigPersister
)
(
AuthProvider
,
error
)
...
...
pkg/client/unversioned/clientcmd/client_config_test.go
View file @
afdbad07
...
@@ -217,7 +217,7 @@ func TestCreateCleanWithPrefix(t *testing.T) {
...
@@ -217,7 +217,7 @@ func TestCreateCleanWithPrefix(t *testing.T) {
{
"anything"
,
"anything"
},
{
"anything"
,
"anything"
},
}
}
// WARNING: EnvVarCluster.Server is set during package loading time and can not be overriden by os.Setenv inside this test
// WARNING: EnvVarCluster.Server is set during package loading time and can not be overrid
d
en by os.Setenv inside this test
EnvVarCluster
.
Server
=
""
EnvVarCluster
.
Server
=
""
tt
=
append
(
tt
,
struct
{
server
,
host
string
}{
""
,
"http://localhost:8080"
})
tt
=
append
(
tt
,
struct
{
server
,
host
string
}{
""
,
"http://localhost:8080"
})
...
...
pkg/client/unversioned/clientcmd/loader.go
View file @
afdbad07
...
@@ -260,7 +260,7 @@ func (rules *ClientConfigLoadingRules) GetDefaultFilename() string {
...
@@ -260,7 +260,7 @@ func (rules *ClientConfigLoadingRules) GetDefaultFilename() string {
return
filename
return
filename
}
}
}
}
// If none exists, use the first from prece
n
dence.
// If none exists, use the first from precedence.
if
len
(
rules
.
Precedence
)
>
0
{
if
len
(
rules
.
Precedence
)
>
0
{
return
rules
.
Precedence
[
0
]
return
rules
.
Precedence
[
0
]
}
}
...
...
pkg/controller/volume/cache/attach_detach_volume_cache.go
View file @
afdbad07
...
@@ -124,7 +124,7 @@ type volume struct {
...
@@ -124,7 +124,7 @@ type volume struct {
name
string
name
string
// attachedNodes is a map containing the set of nodes this volume has
// attachedNodes is a map containing the set of nodes this volume has
// succesfully been attached to. The key in this map is the name of the
// succes
s
fully been attached to. The key in this map is the name of the
// node and the value is a node object containing more information about
// node and the value is a node object containing more information about
// the node.
// the node.
attachedNodes
map
[
string
]
node
attachedNodes
map
[
string
]
node
...
...
pkg/kubectl/cmd/util/factory.go
View file @
afdbad07
...
@@ -123,7 +123,7 @@ type Factory struct {
...
@@ -123,7 +123,7 @@ type Factory struct {
SwaggerSchema
func
(
unversioned
.
GroupVersionKind
)
(
*
swagger
.
ApiDeclaration
,
error
)
SwaggerSchema
func
(
unversioned
.
GroupVersionKind
)
(
*
swagger
.
ApiDeclaration
,
error
)
// Returns the default namespace to use in cases where no
// Returns the default namespace to use in cases where no
// other namespace is specified and whether the namespace was
// other namespace is specified and whether the namespace was
// overriden.
// overrid
d
en.
DefaultNamespace
func
()
(
string
,
bool
,
error
)
DefaultNamespace
func
()
(
string
,
bool
,
error
)
// Generators returns the generators for the provided command
// Generators returns the generators for the provided command
Generators
func
(
cmdName
string
)
map
[
string
]
kubectl
.
Generator
Generators
func
(
cmdName
string
)
map
[
string
]
kubectl
.
Generator
...
...
pkg/kubelet/network/kubenet/kubenet_linux.go
View file @
afdbad07
...
@@ -370,7 +370,7 @@ func (plugin *kubenetNetworkPlugin) GetPodNetworkStatus(namespace string, name s
...
@@ -370,7 +370,7 @@ func (plugin *kubenetNetworkPlugin) GetPodNetworkStatus(namespace string, name s
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
// Try to retrieve ip inside container netw
ro
k namespace
// Try to retrieve ip inside container netw
or
k namespace
output
,
err
:=
plugin
.
execer
.
Command
(
nsenterPath
,
fmt
.
Sprintf
(
"--net=%s"
,
netnsPath
),
"-F"
,
"--"
,
output
,
err
:=
plugin
.
execer
.
Command
(
nsenterPath
,
fmt
.
Sprintf
(
"--net=%s"
,
netnsPath
),
"-F"
,
"--"
,
"ip"
,
"-o"
,
"-4"
,
"addr"
,
"show"
,
"dev"
,
network
.
DefaultInterfaceName
)
.
CombinedOutput
()
"ip"
,
"-o"
,
"-4"
,
"addr"
,
"show"
,
"dev"
,
network
.
DefaultInterfaceName
)
.
CombinedOutput
()
if
err
!=
nil
{
if
err
!=
nil
{
...
...
pkg/master/ports/ports.go
View file @
afdbad07
...
@@ -18,7 +18,7 @@ package ports
...
@@ -18,7 +18,7 @@ package ports
const
(
const
(
// ProxyPort is the default port for the proxy healthz server.
// ProxyPort is the default port for the proxy healthz server.
// May be overriden by a flag at startup.
// May be overrid
d
en by a flag at startup.
ProxyStatusPort
=
10249
ProxyStatusPort
=
10249
// KubeletPort is the default port for the kubelet server on each host machine.
// KubeletPort is the default port for the kubelet server on each host machine.
// May be overridden by a flag at startup.
// May be overridden by a flag at startup.
...
...
pkg/runtime/serializer/protobuf/protobuf.go
View file @
afdbad07
...
@@ -31,7 +31,7 @@ import (
...
@@ -31,7 +31,7 @@ import (
var
(
var
(
// protoEncodingPrefix serves as a magic number for an encoded protobuf message on this serializer. All
// protoEncodingPrefix serves as a magic number for an encoded protobuf message on this serializer. All
// proto messages serialized by this schema will be precede
e
d by the bytes 0x6b 0x38 0x73, with the fourth
// proto messages serialized by this schema will be preceded by the bytes 0x6b 0x38 0x73, with the fourth
// byte being reserved for the encoding style. The only encoding style defined is 0x00, which means that
// byte being reserved for the encoding style. The only encoding style defined is 0x00, which means that
// the rest of the byte stream is a message of type k8s.io.kubernetes.pkg.runtime.Unknown (proto2).
// the rest of the byte stream is a message of type k8s.io.kubernetes.pkg.runtime.Unknown (proto2).
//
//
...
...
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