mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #27255 from lavalamp/fix-docs2
Make each integration test use different prefix
This commit is contained in:
commit
6573ede247
@ -49,9 +49,10 @@ import (
|
|||||||
kubeletclient "k8s.io/kubernetes/pkg/kubelet/client"
|
kubeletclient "k8s.io/kubernetes/pkg/kubelet/client"
|
||||||
"k8s.io/kubernetes/pkg/master"
|
"k8s.io/kubernetes/pkg/master"
|
||||||
"k8s.io/kubernetes/pkg/runtime"
|
"k8s.io/kubernetes/pkg/runtime"
|
||||||
"k8s.io/kubernetes/pkg/storage/etcd/etcdtest"
|
|
||||||
"k8s.io/kubernetes/pkg/storage/storagebackend"
|
"k8s.io/kubernetes/pkg/storage/storagebackend"
|
||||||
"k8s.io/kubernetes/plugin/pkg/admission/admit"
|
"k8s.io/kubernetes/plugin/pkg/admission/admit"
|
||||||
|
|
||||||
|
"github.com/pborman/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -154,7 +155,10 @@ func startMasterOrDie(masterConfig *master.Config) (*master.Master, *httptest.Se
|
|||||||
func NewMasterConfig() *master.Config {
|
func NewMasterConfig() *master.Config {
|
||||||
config := storagebackend.Config{
|
config := storagebackend.Config{
|
||||||
ServerList: []string{"http://127.0.0.1:4001"},
|
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)
|
negotiatedSerializer := NewSingleContentTypeSerializer(api.Scheme, testapi.Default.Codec(), runtime.ContentTypeJSON)
|
||||||
|
Loading…
Reference in New Issue
Block a user