mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 11:18:16 +00:00
Make it possible to share test between e2e and node e2e,
and make container probing test shared to validate.
This commit is contained in:
@@ -18,27 +18,11 @@ package e2e_node
|
||||
|
||||
import (
|
||||
"flag"
|
||||
|
||||
"k8s.io/kubernetes/pkg/client/restclient"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
)
|
||||
|
||||
var kubeletAddress = flag.String("kubelet-address", "http://127.0.0.1:10255", "Host and port of the kubelet")
|
||||
var apiServerAddress = flag.String("api-server-address", "http://127.0.0.1:8080", "Host and port of the api server")
|
||||
|
||||
var disableKubenet = flag.Bool("disable-kubenet", false, "If true, start kubelet without kubenet")
|
||||
var buildServices = flag.Bool("build-services", true, "If true, build local executables")
|
||||
var startServices = flag.Bool("start-services", true, "If true, start local node services")
|
||||
var stopServices = flag.Bool("stop-services", true, "If true, stop local node services after running tests")
|
||||
|
||||
func NewDefaultFramework(baseName string) *framework.Framework {
|
||||
// Provides a client config for the framework to create a client.
|
||||
f := func() (*restclient.Config, error) {
|
||||
return &restclient.Config{Host: *apiServerAddress}, nil
|
||||
}
|
||||
return framework.NewFrameworkWithConfigGetter(baseName,
|
||||
framework.FrameworkOptions{
|
||||
ClientQPS: 100,
|
||||
ClientBurst: 100,
|
||||
}, nil, f)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user