diff --git a/pkg/kubelet/server/auth_test.go b/pkg/kubelet/server/auth_test.go index e4c826963da..e3d561d8f63 100644 --- a/pkg/kubelet/server/auth_test.go +++ b/pkg/kubelet/server/auth_test.go @@ -125,7 +125,7 @@ func AuthzTestCases(fineGrained bool) []AuthzTestCase { "/attach/{podNamespace}/{podID}/{uid}/{containerName}": {"proxy"}, "/checkpoint/{podNamespace}/{podID}/{containerName}": {"checkpoint"}, "/configz": {"proxy"}, - "/statusz": {"proxy"}, + "/statusz": {"statusz"}, "/containerLogs/{podNamespace}/{podID}/{containerName}": {"proxy"}, "/debug/flags/v": {"proxy"}, "/debug/pprof/{subpath:*}": {"proxy"}, @@ -160,7 +160,6 @@ func AuthzTestCases(fineGrained bool) []AuthzTestCase { testPaths["/pods/"] = append([]string{"pods"}, testPaths["/pods/"]...) testPaths["/runningpods/"] = append([]string{"pods"}, testPaths["/runningpods/"]...) testPaths["/configz"] = append([]string{"configz"}, testPaths["/configz"]...) - testPaths["/statusz"] = append([]string{"statusz"}, testPaths["/statusz"]...) } testCases := []AuthzTestCase{}