mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
Corrects some misspellings in comments
This should help to make https://goreportcard.com/report/k8s.io/kubernetes#misspell look a little nicer.
This commit is contained in:
parent
22dfaef9f0
commit
afdbad078a
@ -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 initial 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)
|
||||||
|
|
||||||
|
@ -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 overridden 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"})
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ func (rules *ClientConfigLoadingRules) GetDefaultFilename() string {
|
|||||||
return filename
|
return filename
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If none exists, use the first from precendence.
|
// 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]
|
||||||
}
|
}
|
||||||
|
@ -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
|
// successfully 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
|
||||||
|
@ -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.
|
// overridden.
|
||||||
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
|
||||||
|
@ -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 netwrok namespace
|
// Try to retrieve ip inside container network 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 {
|
||||||
|
@ -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 overridden 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.
|
||||||
|
@ -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 precedeed 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).
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user