Re-vendor

This commit is contained in:
Johannes Würbach 2020-09-27 22:15:35 +02:00
parent 0429028c4f
commit ab00b207af
No known key found for this signature in database
GPG key ID: 74DB0F4D956CCCE3
910 changed files with 63539 additions and 106415 deletions

View file

@ -17,6 +17,7 @@ limitations under the License.
package helpers
import (
"context"
"fmt"
apimeta "k8s.io/apimachinery/pkg/api/meta"
@ -83,7 +84,7 @@ func ListObjectNames(mapper apimeta.RESTMapper, client dynamic.Interface, namesp
resClient = client.Resource(res)
}
matchingObjectsRaw, err := resClient.List(metav1.ListOptions{LabelSelector: selector.String()})
matchingObjectsRaw, err := resClient.List(context.TODO(), metav1.ListOptions{LabelSelector: selector.String()})
if err != nil {
return nil, err
}

View file

@ -34,6 +34,7 @@ import (
// interfaces.
type REST struct {
emProvider provider.ExternalMetricsProvider
rest.TableConvertor
}
var _ rest.Storage = &REST{}