K8s: discourage nil authorizer return for APIBuilder as well (#115116)
This commit is contained in:
@@ -275,6 +275,8 @@ func (s *service) start(ctx context.Context) error {
|
||||
auth := a.GetAuthorizer()
|
||||
if auth != nil {
|
||||
s.authorizer.Register(gv, auth)
|
||||
} else {
|
||||
panic("authorizer can not be nil for api group=" + gv.String())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user