Merge pull request #30031 from andreykurilin/apiserver_typo

Automatic merge from submit-queue

Fix various typos in apiserver pkg
This commit is contained in:
Kubernetes Submit Queue 2016-08-04 07:13:14 -07:00 committed by GitHub
commit 0e71c0c808
4 changed files with 5 additions and 5 deletions

View File

@ -90,7 +90,7 @@ var AuthorizationModeChoices = []string{ModeAlwaysAllow, ModeAlwaysDeny, ModeABA
type AuthorizationConfig struct {
// Options for ModeABAC
// Path to a ABAC policy file.
// Path to an ABAC policy file.
PolicyFile string
// Options for ModeWebhook
@ -119,7 +119,7 @@ type AuthorizationConfig struct {
func NewAuthorizerFromAuthorizationConfig(authorizationModes []string, config AuthorizationConfig) (authorizer.Authorizer, error) {
if len(authorizationModes) == 0 {
return nil, errors.New("Atleast one authorization mode should be passed")
return nil, errors.New("At least one authorization mode should be passed")
}
var authorizers []authorizer.Authorizer

View File

@ -83,7 +83,7 @@ func TestNewAuthorizerFromAuthorizationConfig(t *testing.T) {
msg: "should have errored when Authorization Policy File is used without ModeABAC",
},
{
// Atleast one authorizationMode is necessary
// At least one authorizationMode is necessary
modes: []string{},
config: AuthorizationConfig{PolicyFile: examplePolicyFile},
wantErr: true,

View File

@ -71,7 +71,7 @@ func pathWithPrefix(prefix, resource, namespace, name string) string {
// - we correctly recover after some "short" requests finish, i.e. we can process new ones.
func TestMaxInFlight(t *testing.T) {
const AllowedInflightRequestsNo = 3
// Size of inflightRequestsChannel determines how many concurent inflight requests
// Size of inflightRequestsChannel determines how many concurrent inflight requests
// are allowed.
inflightRequestsChannel := make(chan bool, AllowedInflightRequestsNo)
// notAccountedPathsRegexp specifies paths requests to which we don't account into

View File

@ -30,7 +30,7 @@ func IndexHandler(container *restful.Container, muxHelper *MuxHelper) func(http.
status := http.StatusOK
if r.URL.Path != "/" && r.URL.Path != "/index.html" {
// Since "/" matches all paths, handleIndex is called for all paths for which there is no handler registered.
// We want to to return a 404 status with a list of all valid paths, incase of an invalid URL request.
// We want to return a 404 status with a list of all valid paths, incase of an invalid URL request.
status = http.StatusNotFound
}
var handledPaths []string