Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKindCluster ¶
CreateKindCluster returns an env.Func that is used to create a kind cluster that is then injected in the context using the name as a key.
NOTE: the returned function will update its env config with the kubeconfig file for the config client.
func CreateKindClusterWithConfig ¶ added in v0.0.4
CreateKindClusterWithConfig returns an env.Func that is used to create a kind cluster that is then injected in the context using the name as a key.
NOTE: the returned function will update its env config with the kubeconfig file for the config client.
func CreateNamespace ¶
CreateNamespace provides an Environment.Func that creates a new namespace API object and stores it the context using its name as key.
NOTE: the returned environment function automatically updates the env config, it receives, with the namespace to make it available for subsequent call.
func DeleteNamespace ¶
DeleteNamespace provides an Environment.Func that deletes the named namespace. It first searches for the ns in its context, if not found then attempt to retrieve it from the API server. Then deletes it.
func DestroyKindCluster ¶
DestroyKindCluster returns an EnvFunc that retrieves a previously saved kind Cluster in the context (using the name), then deletes it.
NOTE: this should be used in a Environment.Finish step.
Types ¶
This section is empty.