mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
change the default storage location to avoid double prefixing
This commit is contained in:
parent
6cb18cae82
commit
bc3434c084
@ -382,7 +382,7 @@ func TestEtcdStorage(t *testing.T) {
|
||||
expectedObject *metaObject
|
||||
}{
|
||||
"namespacedNoxuDefinition": {
|
||||
etcdPath: path.Join("/", etcdPrefix, "apiextensions.k8s.io/customresourcedefinitions/noxus.mygroup.example.com"),
|
||||
etcdPath: "apiextensions.k8s.io/customresourcedefinitions/noxus.mygroup.example.com",
|
||||
expectedObject: &metaObject{
|
||||
Kind: "CustomResourceDefinition",
|
||||
APIVersion: "apiextensions.k8s.io/v1beta1",
|
||||
@ -407,7 +407,7 @@ func TestEtcdStorage(t *testing.T) {
|
||||
},
|
||||
|
||||
"clusteredCurletDefinition": {
|
||||
etcdPath: path.Join("/", etcdPrefix, "apiextensions.k8s.io/customresourcedefinitions/curlets.mygroup.example.com"),
|
||||
etcdPath: "apiextensions.k8s.io/customresourcedefinitions/curlets.mygroup.example.com",
|
||||
expectedObject: &metaObject{
|
||||
Kind: "CustomResourceDefinition",
|
||||
APIVersion: "apiextensions.k8s.io/v1beta1",
|
||||
|
@ -135,7 +135,7 @@ func (f *SimpleRestOptionsFactory) GetRESTOptions(resource schema.GroupResource)
|
||||
Decorator: generic.UndecoratedStorage,
|
||||
EnableGarbageCollection: f.Options.EnableGarbageCollection,
|
||||
DeleteCollectionWorkers: f.Options.DeleteCollectionWorkers,
|
||||
ResourcePrefix: f.Options.StorageConfig.Prefix + "/" + resource.Group + "/" + resource.Resource,
|
||||
ResourcePrefix: resource.Group + "/" + resource.Resource,
|
||||
}
|
||||
if f.Options.EnableWatchCache {
|
||||
ret.Decorator = genericregistry.StorageWithCacher(f.Options.DefaultWatchCacheSize)
|
||||
|
Loading…
Reference in New Issue
Block a user