mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #43623 from liggitt/discovery-order
Automatic merge from submit-queue (batch tested with PRs 40885, 43623, 43735) Update godoc for discovery registration Follow up from https://github.com/kubernetes/kubernetes/pull/43553/files?diff=split#r107723539
This commit is contained in:
commit
9efb1f34e8
@ -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
Block a user