Remove pod UID from volumeMount, we can get it elsewhere

This commit is contained in:
Robert Krawitz
2019-05-31 13:58:51 -04:00
parent 10d37bb748
commit bf1f0fa5d9
8 changed files with 18 additions and 14 deletions

View File

@@ -22,6 +22,7 @@ import (
"fmt"
"io/ioutil"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/types"
utilfeature "k8s.io/apiserver/pkg/util/feature"
featuregatetesting "k8s.io/component-base/featuregate/testing"
"k8s.io/kubernetes/pkg/features"
@@ -389,7 +390,7 @@ func fakeSupportsQuotas(path string) (bool, error) {
return SupportsQuotas(dummyQuotaTest(), path)
}
func fakeAssignQuota(path string, poduid string, bytes int64) error {
func fakeAssignQuota(path string, poduid types.UID, bytes int64) error {
dummySetFSInfo(path)
return AssignQuota(dummyQuotaTest(), path, poduid, resource.NewQuantity(bytes, resource.DecimalSI))
}
@@ -401,7 +402,7 @@ func fakeClearQuota(path string) error {
type quotaTestCase struct {
path string
poduid string
poduid types.UID
bytes int64
op string
expectedProjects string