@@ -69,11 +69,11 @@ func isSubpath(subpath, path string) bool {
69
69
// /metrics/* => verb=<api verb from request>, resource=nodes, name=<node name>, subresource(s)=metrics
70
70
// /logs/* => verb=<api verb from request>, resource=nodes, name=<node name>, subresource(s)=log
71
71
// /checkpoint/* => verb=<api verb from request>, resource=nodes, name=<node name>, subresource(s)=checkpoint
72
+ // /statusz => verb=<api verb from request>, resource=nodes, name=<node name>, subresource(s)=statusz
72
73
// /pods/* => verb=<api verb from request>, resource=nodes, name=<node name>, subresource(s)=pods,proxy
73
74
// /runningPods/* => verb=<api verb from request>, resource=nodes, name=<node name>, subresource(s)=pods,proxy
74
75
// /healthz/* => verb=<api verb from request>, resource=nodes, name=<node name>, subresource(s)=healthz,proxy
75
76
// /configz => verb=<api verb from request>, resource=nodes, name=<node name>, subresource(s)=configz,proxy
76
- // /statusz => verb=<api verb from request>, resource=nodes, name=<node name>, subresource(s)=statusz,proxy
77
77
func (n nodeAuthorizerAttributesGetter ) GetRequestAttributes (u user.Info , r * http.Request ) []authorizer.Attributes {
78
78
79
79
apiVerb := ""
@@ -101,8 +101,6 @@ func (n nodeAuthorizerAttributesGetter) GetRequestAttributes(u user.Info, r *htt
101
101
subresources = append (subresources , "healthz" )
102
102
case isSubpath (requestPath , configz .DefaultConfigzPath ):
103
103
subresources = append (subresources , "configz" )
104
- case isSubpath (requestPath , statusz .DefaultStatuszPath ):
105
- subresources = append (subresources , "statusz" )
106
104
// We put runningpods last since it will allocate a new string on every
107
105
// check since the handler path has a trailing slash.
108
106
case isSubpath (requestPath , runningPodsPath ):
@@ -120,6 +118,8 @@ func (n nodeAuthorizerAttributesGetter) GetRequestAttributes(u user.Info, r *htt
120
118
subresources = append (subresources , "log" )
121
119
case isSubpath (requestPath , checkpointPath ):
122
120
subresources = append (subresources , "checkpoint" )
121
+ case isSubpath (requestPath , statusz .DefaultStatuszPath ):
122
+ subresources = append (subresources , "statusz" )
123
123
default :
124
124
subresources = append (subresources , "proxy" )
125
125
}
0 commit comments