mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-22 03:27:02 +00:00
published by bot
(https://github.com/kubernetes/contrib/tree/master/mungegithub) copied from https://github.com/kubernetes/kubernetes.git, branch master, last commit is 81d788dd6e0748e5d53a62c16d933c5f7a0718af
This commit is contained in:
@@ -19,7 +19,7 @@ package discovery
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"k8s.io/client-go/pkg/api/unversioned"
|
||||
metav1 "k8s.io/client-go/pkg/apis/meta/v1"
|
||||
"k8s.io/client-go/pkg/runtime/schema"
|
||||
"k8s.io/client-go/pkg/util/sets"
|
||||
"k8s.io/client-go/pkg/version"
|
||||
@@ -61,7 +61,7 @@ func NegotiateVersion(client DiscoveryInterface, requiredGV *schema.GroupVersion
|
||||
// not a negotiation specific error.
|
||||
return nil, err
|
||||
}
|
||||
versions := unversioned.ExtractGroupVersions(groups)
|
||||
versions := metav1.ExtractGroupVersions(groups)
|
||||
serverVersions := sets.String{}
|
||||
for _, v := range versions {
|
||||
serverVersions.Insert(v)
|
||||
|
Reference in New Issue
Block a user