Documentation
¶
Index ¶
- Constants
- func CleanupMasterEtcd(t *testing.T, config *configapi.MasterConfig)
- func CreateMasterCerts(masterArgs *start.MasterArgs) error
- func CreateNewProject(clusterAdminClient *client.Client, clientConfig restclient.Config, ...) (kclientset.Interface, *client.Client, error)
- func CreateNodeCerts(nodeArgs *start.NodeArgs, masterURL string) error
- func DefaultAllInOneOptions() (*configapi.MasterConfig, *configapi.NodeConfig, *utilflags.ComponentFlag, ...)
- func DefaultMasterOptions() (*configapi.MasterConfig, error)
- func DefaultMasterOptionsWithTweaks(startEtcd, useDefaultPort bool) (*configapi.MasterConfig, error)
- func FindAvailableBindAddress(lowPort, highPort int) (string, error)
- func IsServerHealthy(url url.URL, checkOAuth bool) (bool, string, error)
- func MasterEtcdClients(config *configapi.MasterConfig) (etcdclient.Client, *etcdclientv3.Client, error)
- func StartConfiguredAllInOne(masterConfig *configapi.MasterConfig, nodeConfig *configapi.NodeConfig, ...) (string, error)
- func StartConfiguredMaster(masterConfig *configapi.MasterConfig) (string, error)
- func StartConfiguredMasterAPI(masterConfig *configapi.MasterConfig) (string, error)
- func StartConfiguredMasterWithOptions(masterConfig *configapi.MasterConfig, testOptions TestOptions) (string, error)
- func StartConfiguredNode(nodeConfig *configapi.NodeConfig, components *utilflags.ComponentFlag) error
- func StartTestAllInOne() (*configapi.MasterConfig, *configapi.NodeConfig, string, error)
- func StartTestMaster() (*configapi.MasterConfig, string, error)
- func StartTestMasterAPI() (*configapi.MasterConfig, string, error)
- func WaitForPodCreationServiceAccounts(clientset kclientset.Interface, namespace string) error
- func WaitForServiceAccounts(clientset kclientset.Interface, namespace string, accounts []string) error
- type TestOptions
Constants ¶
const PodCreationWaitTimeout = 10 * time.Second
PodCreationWaitTimeout is used to determine how long to wait after the service account token is available for the admission control cache to catch up and allow pod creation
const ServiceAccountWaitTimeout = 30 * time.Second
ServiceAccountWaitTimeout is used to determine how long to wait for the service account controllers to start up, and populate the service accounts in the test namespace
Variables ¶
This section is empty.
Functions ¶
func CleanupMasterEtcd ¶
func CleanupMasterEtcd(t *testing.T, config *configapi.MasterConfig)
func CreateMasterCerts ¶
func CreateMasterCerts(masterArgs *start.MasterArgs) error
func CreateNewProject ¶
func CreateNewProject(clusterAdminClient *client.Client, clientConfig restclient.Config, projectName, adminUser string) (kclientset.Interface, *client.Client, error)
CreateNewProject creates a new project using the clusterAdminClient, then gets a token for the adminUser and returns back a client for the admin user
func DefaultAllInOneOptions ¶
func DefaultAllInOneOptions() (*configapi.MasterConfig, *configapi.NodeConfig, *utilflags.ComponentFlag, error)
func DefaultMasterOptions ¶
func DefaultMasterOptions() (*configapi.MasterConfig, error)
func DefaultMasterOptionsWithTweaks ¶ added in v1.1.2
func DefaultMasterOptionsWithTweaks(startEtcd, useDefaultPort bool) (*configapi.MasterConfig, error)
func FindAvailableBindAddress ¶
FindAvailableBindAddress returns a bind address on 127.0.0.1 with a free port in the low-high range. If lowPort is 0, an ephemeral port is allocated.
func MasterEtcdClients ¶
func MasterEtcdClients(config *configapi.MasterConfig) (etcdclient.Client, *etcdclientv3.Client, error)
func StartConfiguredAllInOne ¶
func StartConfiguredAllInOne(masterConfig *configapi.MasterConfig, nodeConfig *configapi.NodeConfig, components *utilflags.ComponentFlag) (string, error)
func StartConfiguredMaster ¶
func StartConfiguredMaster(masterConfig *configapi.MasterConfig) (string, error)
func StartConfiguredMasterAPI ¶ added in v1.1.1
func StartConfiguredMasterAPI(masterConfig *configapi.MasterConfig) (string, error)
func StartConfiguredMasterWithOptions ¶
func StartConfiguredMasterWithOptions(masterConfig *configapi.MasterConfig, testOptions TestOptions) (string, error)
func StartConfiguredNode ¶
func StartConfiguredNode(nodeConfig *configapi.NodeConfig, components *utilflags.ComponentFlag) error
func StartTestAllInOne ¶
func StartTestAllInOne() (*configapi.MasterConfig, *configapi.NodeConfig, string, error)
func StartTestMaster ¶
func StartTestMaster() (*configapi.MasterConfig, string, error)
StartTestMaster starts up a test master and returns back the startOptions so you can get clients and certs
func StartTestMasterAPI ¶ added in v1.1.1
func StartTestMasterAPI() (*configapi.MasterConfig, string, error)
func WaitForPodCreationServiceAccounts ¶ added in v1.3.0
func WaitForPodCreationServiceAccounts(clientset kclientset.Interface, namespace string) error
WaitForPodCreationServiceAccounts ensures that the service account needed for pod creation exists and that the cache for the admission control that checks for pod tokens has caught up to allow pod creation.
func WaitForServiceAccounts ¶
func WaitForServiceAccounts(clientset kclientset.Interface, namespace string, accounts []string) error
WaitForServiceAccounts ensures the service accounts needed by build pods exist in the namespace The extra controllers tend to starve the service account controller
Types ¶
type TestOptions ¶
type TestOptions struct {
EnableControllers bool
}
func DefaultTestOptions ¶
func DefaultTestOptions() TestOptions