Update godoc for discovery registration
Kubernetes-commit: 85b23bb98a2c80fe631e20785e5e7172cb69e518
This commit is contained in:
parent
1e6400df1f
commit
1d9d56a19e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue