package
0.0.0-20191024030528-a481964b876e
Repository: https://github.com/divinerapier/learn-kubernetes.git
Documentation: pkg.go.dev

# Functions

CreateTestingNamespace creates a namespace for testing.
DefaultEtcdOptions are the default EtcdOptions for use with integration tests.
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.
NewIntegrationTestMasterConfigWithOptions returns the master config appropriate for most integration tests configured with the provided options.
NewIntegrationTestNodePreparer creates an IntegrationTestNodePreparer configured with defaults.
NewMasterConfig returns a basic master config.
NewMasterConfigWithOptions returns a basic master config configured with the provided options.
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.
MasterConfigOptions are the configurable options for a new integration test master config.
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.