File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -217,14 +217,14 @@ func (ip *InformersMap) newListWatch(gvk schema.GroupVersionKind) (*cache.ListWa
217
217
return & cache.ListWatch {
218
218
ListFunc : func (opts metav1.ListOptions ) (runtime.Object , error ) {
219
219
res := listObj .DeepCopyObject ()
220
- err := client .Get ().Resource (mapping .Resource .String () ).VersionedParams (& opts , ip .paramCodec ).Do ().Into (res )
220
+ err := client .Get ().Resource (mapping .Resource .Resource ).VersionedParams (& opts , ip .paramCodec ).Do ().Into (res )
221
221
return res , err
222
222
},
223
223
// Setup the watch function
224
224
WatchFunc : func (opts metav1.ListOptions ) (watch.Interface , error ) {
225
225
// Watch needs to be set to true separately
226
226
opts .Watch = true
227
- return client .Get ().Resource (mapping .Resource .String () ).VersionedParams (& opts , ip .paramCodec ).Watch ()
227
+ return client .Get ().Resource (mapping .Resource .Resource ).VersionedParams (& opts , ip .paramCodec ).Watch ()
228
228
},
229
229
}, nil
230
230
}
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ func (r *resourceMeta) isNamespaced() bool {
132
132
133
133
// resource returns the resource name of the type
134
134
func (r * resourceMeta ) resource () string {
135
- return r .mapping .Resource .String ()
135
+ return r .mapping .Resource .Resource
136
136
}
137
137
138
138
// objMeta stores type and object information about a Kubernetes type
You can’t perform that action at this time.
0 commit comments