package
0.0.0-20190319231021-e6272b887b81
Repository: https://github.com/marun/kubernetes.git
Documentation: pkg.go.dev
# Functions
CreateTestingNamespace creates a namespace for testing.
DefaultOpenAPIConfig returns an openapicommon.Config initialized to default values.
DeleteTestingNamespace is currently a no-op function.
EtcdMain starts an etcd instance before running tests.
GetEtcdURL returns the URL of the etcd instance started by EtcdMain.
NewIntegrationTestMasterConfig returns the master config appropriate for most integration tests.
NewIntegrationTestNodePreparer creates an IntegrationTestNodePreparer configured with defaults.
NewMasterConfig returns a basic master config.
NewSingleContentTypeSerializer wraps a serializer in a NegotiatedSerializer that handles one content type.
RunAMaster starts a master with the provided config.
RunAMasterUsingServer starts up a master using the provided config on the specified server.
SharedEtcd creates a storage config for a shared etcd instance, with a unique prefix.
StartTestServer runs a kube-apiserver, optionally calling out to the setup.ModifyServerRunOptions and setup.ModifyServerConfig functions.
# Structs
Config is a struct of configuration directives for NewMasterComponents.
IntegrationTestNodePreparer holds configuration information for the test node preparer.
MasterHolder implements.
TestServerSetup holds configuration information for a kube-apiserver test server.
# Interfaces
MasterReceiver can be used to provide the master to a custom incoming server function.
# Type aliases
CloseFunc can be called to cleanup the master.