mirror of https://github.com/k3s-io/k3s
Make each integration test use different prefix
parent
6419b43a1f
commit
6e6ae452e5
|
@ -49,9 +49,10 @@ import (
|
|||
kubeletclient "k8s.io/kubernetes/pkg/kubelet/client"
|
||||
"k8s.io/kubernetes/pkg/master"
|
||||
"k8s.io/kubernetes/pkg/runtime"
|
||||
"k8s.io/kubernetes/pkg/storage/etcd/etcdtest"
|
||||
"k8s.io/kubernetes/pkg/storage/storagebackend"
|
||||
"k8s.io/kubernetes/plugin/pkg/admission/admit"
|
||||
|
||||
"github.com/pborman/uuid"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -154,7 +155,10 @@ func startMasterOrDie(masterConfig *master.Config) (*master.Master, *httptest.Se
|
|||
func NewMasterConfig() *master.Config {
|
||||
config := storagebackend.Config{
|
||||
ServerList: []string{"http://127.0.0.1:4001"},
|
||||
Prefix: etcdtest.PathPrefix(),
|
||||
// TODO: this is a quick hack to work around #27179. It
|
||||
// conveniently exercises the prefix code, so maybe it's worth
|
||||
// leaving in.
|
||||
Prefix: uuid.New(),
|
||||
}
|
||||
|
||||
negotiatedSerializer := NewSingleContentTypeSerializer(api.Scheme, testapi.Default.Codec(), runtime.ContentTypeJSON)
|
||||
|
|
Loading…
Reference in New Issue