Update godoc for discovery registration

Kubernetes-commit: 85b23bb98a2c80fe631e20785e5e7172cb69e518
This commit is contained in:
Jordan Liggitt 2017-03-23 13:01:23 -04:00 committed by Kubernetes Publisher
parent 1e6400df1f
commit 1d9d56a19e
1 changed files with 2 additions and 0 deletions

View File

@ -390,6 +390,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()