K8s: discourage nil authorizer return for APIBuilder as well (#115116)

This commit is contained in:
Charandas
2025-12-10 23:06:09 +00:00
committed by GitHub
parent 2a65e0cdcb
commit 3a4022061d
+2
View File
@@ -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())
}
}
}