mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
removed unused defaultClientConfigForVersion()
functions from cmd_test.go. modified: pkg/kubectl/cmd/cmd_test.go
This commit is contained in:
parent
134e89e663
commit
3be3cf6b64
@ -75,17 +75,6 @@ func defaultClientConfig() *restclient.Config {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func defaultClientConfigForVersion(version *schema.GroupVersion) *restclient.Config {
|
|
||||||
return &restclient.Config{
|
|
||||||
APIPath: "/api",
|
|
||||||
ContentConfig: restclient.ContentConfig{
|
|
||||||
NegotiatedSerializer: scheme.Codecs,
|
|
||||||
ContentType: runtime.ContentTypeJSON,
|
|
||||||
GroupVersion: version,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func testData() (*api.PodList, *api.ServiceList, *api.ReplicationControllerList) {
|
func testData() (*api.PodList, *api.ServiceList, *api.ReplicationControllerList) {
|
||||||
pods := &api.PodList{
|
pods := &api.PodList{
|
||||||
ListMeta: metav1.ListMeta{
|
ListMeta: metav1.ListMeta{
|
||||||
|
Loading…
Reference in New Issue
Block a user