Documentation ¶
Index ¶
- Constants
- func CreateBootstrapPolicy(masterArgs *start.MasterArgs) error
- func CreateMasterCerts(masterArgs *start.MasterArgs) error
- func CreateNewProject(clusterAdminClient *client.Client, clientConfig kclient.Config, ...) (*client.Client, error)
- func CreateNodeCerts(nodeArgs *start.NodeArgs, masterURL string) error
- func DefaultAllInOneOptions() (*configapi.MasterConfig, *configapi.NodeConfig, error)
- func DefaultMasterOptions() (*configapi.MasterConfig, error)
- func FindAvailableBindAddress(lowPort, highPort int) (string, error)
- func RequireServer()
- 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) error
- func StartTestAllInOne() (*configapi.MasterConfig, *configapi.NodeConfig, string, error)
- func StartTestMaster() (*configapi.MasterConfig, string, error)
- func StartTestMasterAPI() (*configapi.MasterConfig, string, error)
- func WaitForServiceAccounts(client *kclient.Client, namespace string, accounts []string) error
- type TestOptions
Constants ¶
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 CreateBootstrapPolicy ¶
func CreateBootstrapPolicy(masterArgs *start.MasterArgs) error
func CreateMasterCerts ¶
func CreateMasterCerts(masterArgs *start.MasterArgs) error
func CreateNewProject ¶
func CreateNewProject(clusterAdminClient *client.Client, clientConfig kclient.Config, projectName, adminUser string) (*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, error)
func DefaultMasterOptions ¶
func DefaultMasterOptions() (*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 RequireServer ¶
func RequireServer()
RequireServer verifies if the etcd, docker and the OpenShift server are available and you can successfully connected to them.
func StartConfiguredAllInOne ¶
func StartConfiguredAllInOne(masterConfig *configapi.MasterConfig, nodeConfig *configapi.NodeConfig) (string, error)
func StartConfiguredMaster ¶
func StartConfiguredMaster(masterConfig *configapi.MasterConfig) (string, error)
func StartConfiguredMasterAPI ¶
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) 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 ¶
func StartTestMasterAPI() (*configapi.MasterConfig, string, error)
Types ¶
type TestOptions ¶
func DefaultTestOptions ¶
func DefaultTestOptions() TestOptions