@@ -36,7 +36,10 @@ import (
36
36
37
37
// clientCreatorFunc knows how to create a client and the corresponding list object that it should
38
38
// deserialize into for any given group-version-kind.
39
- type clientCreatorFunc func (gvk schema.GroupVersionKind , codecs serializer.CodecFactory , scheme * runtime.Scheme , baseConfig * rest.Config ) (client rest.Interface , listObj runtime.Object , err error )
39
+ type clientCreatorFunc func (gvk schema.GroupVersionKind ,
40
+ codecs serializer.CodecFactory ,
41
+ scheme * runtime.Scheme ,
42
+ baseConfig * rest.Config ) (client rest.Interface , listObj runtime.Object , err error )
40
43
41
44
// newSpecificInformersMap returns a new specificInformersMap (like
42
45
// the generical InformersMap, except that it doesn't implement WaitForCacheSync).
@@ -237,7 +240,11 @@ func (ip *specificInformersMap) newListWatch(gvk schema.GroupVersionKind) (*cach
237
240
238
241
// createUnstructuredClient is a ClientCreatorFunc for use with structured
239
242
// objects (i.e. not Unstructured/UnstructuredList).
240
- func createStructuredClient (gvk schema.GroupVersionKind , codecs serializer.CodecFactory , scheme * runtime.Scheme , baseConfig * rest.Config ) (rest.Interface , runtime.Object , error ) {
243
+ func createStructuredClient (gvk schema.GroupVersionKind ,
244
+ codecs serializer.CodecFactory ,
245
+ scheme * runtime.Scheme ,
246
+ baseConfig * rest.Config ) (rest.Interface , runtime.Object , error ) {
247
+
241
248
client , err := apiutil .RESTClientForGVK (gvk , baseConfig , codecs )
242
249
if err != nil {
243
250
return nil , nil , err
@@ -252,7 +259,11 @@ func createStructuredClient(gvk schema.GroupVersionKind, codecs serializer.Codec
252
259
}
253
260
254
261
// createUnstructuredClient is a ClientCreatorFunc for use with Unstructured and UnstructuredList.
255
- func createUnstructuredClient (gvk schema.GroupVersionKind , _ serializer.CodecFactory , _ * runtime.Scheme , baseConfig * rest.Config ) (rest.Interface , runtime.Object , error ) {
262
+ func createUnstructuredClient (gvk schema.GroupVersionKind ,
263
+ _ serializer.CodecFactory ,
264
+ _ * runtime.Scheme ,
265
+ baseConfig * rest.Config ) (rest.Interface , runtime.Object , error ) {
266
+
256
267
listObj := & unstructured.UnstructuredList {}
257
268
client , err := apiutil .RESTUnstructuredClientForGVK (gvk , baseConfig )
258
269
if err != nil {
0 commit comments