diff --git a/pkg/apiserver/authz.go b/pkg/apiserver/authz.go index 7a19f2d4fcd..d65eebbd2d8 100644 --- a/pkg/apiserver/authz.go +++ b/pkg/apiserver/authz.go @@ -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 diff --git a/pkg/apiserver/authz_test.go b/pkg/apiserver/authz_test.go index bc9b6ebba8f..09b50d1fe92 100644 --- a/pkg/apiserver/authz_test.go +++ b/pkg/apiserver/authz_test.go @@ -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, diff --git a/pkg/apiserver/handlers_test.go b/pkg/apiserver/handlers_test.go index e1278c27e61..50058bdff3f 100644 --- a/pkg/apiserver/handlers_test.go +++ b/pkg/apiserver/handlers_test.go @@ -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 diff --git a/pkg/apiserver/index.go b/pkg/apiserver/index.go index eaeeb92e41f..4947f5778ad 100644 --- a/pkg/apiserver/index.go +++ b/pkg/apiserver/index.go @@ -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