mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #30031 from andreykurilin/apiserver_typo
Automatic merge from submit-queue Fix various typos in apiserver pkg
This commit is contained in:
commit
0e71c0c808
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user