move old dynamic client to deprecated-client

This commit is contained in:
David Eads
2018-05-09 12:54:24 -04:00
parent 82e32d2a32
commit d8924bc1c9
27 changed files with 843 additions and 447 deletions

View File

@@ -117,7 +117,7 @@ func (f *ring1Factory) UnstructuredClientForMapping(mapping *meta.RESTMapping) (
cfg.APIPath = "/api"
}
gv := mapping.GroupVersionKind.GroupVersion()
cfg.ContentConfig = dynamic.ContentConfig()
cfg.ContentConfig = resource.UnstructuredPlusDefaultContentConfig()
cfg.GroupVersion = &gv
return restclient.RESTClientFor(cfg)
}