mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
modify some mistake
This commit is contained in:
parent
a3501fb994
commit
3e78e53c3d
@ -429,7 +429,7 @@ func NewDiscoveryClientForConfig(c *restclient.Config) (*DiscoveryClient, error)
|
|||||||
return &DiscoveryClient{restClient: client, LegacyPrefix: "/api"}, err
|
return &DiscoveryClient{restClient: client, LegacyPrefix: "/api"}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDiscoveryClientForConfig creates a new DiscoveryClient for the given config. If
|
// NewDiscoveryClientForConfigOrDie creates a new DiscoveryClient for the given config. If
|
||||||
// there is an error, it panics.
|
// there is an error, it panics.
|
||||||
func NewDiscoveryClientForConfigOrDie(c *restclient.Config) *DiscoveryClient {
|
func NewDiscoveryClientForConfigOrDie(c *restclient.Config) *DiscoveryClient {
|
||||||
client, err := NewDiscoveryClientForConfig(c)
|
client, err := NewDiscoveryClientForConfig(c)
|
||||||
@ -440,7 +440,7 @@ func NewDiscoveryClientForConfigOrDie(c *restclient.Config) *DiscoveryClient {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new DiscoveryClient for the given RESTClient.
|
// NewDiscoveryClient returns a new DiscoveryClient for the given RESTClient.
|
||||||
func NewDiscoveryClient(c restclient.Interface) *DiscoveryClient {
|
func NewDiscoveryClient(c restclient.Interface) *DiscoveryClient {
|
||||||
return &DiscoveryClient{restClient: c, LegacyPrefix: "/api"}
|
return &DiscoveryClient{restClient: c, LegacyPrefix: "/api"}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user