Update godoc for discovery registration

This commit is contained in:
Jordan Liggitt 2017-03-23 13:01:23 -04:00
parent a845e3e936
commit 85b23bb98a
No known key found for this signature in database
GPG Key ID: 24E7ADF9A3B42012

View File

@ -331,6 +331,8 @@ func (s *GenericAPIServer) InstallAPIGroup(apiGroupInfo *APIGroupInfo) error {
return nil
}
// AddAPIGroupForDiscovery adds the specified group to the list served to discovery queries.
// Groups are listed in the order they are added.
func (s *GenericAPIServer) AddAPIGroupForDiscovery(apiGroup metav1.APIGroup) {
s.apiGroupsForDiscoveryLock.Lock()
defer s.apiGroupsForDiscoveryLock.Unlock()