Documentation ¶
Overview ¶
Package kube contains some tools to setup and use a Kind cluster
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteExistingManifestFile ¶ added in v1.6.0
Types ¶
type Kind ¶
type Kind struct {
// contains filtered or unexported fields
}
Kind cluster deployed by each TestMain function, prepared to run a given test scenario.
func (*Kind) TestEnv ¶
func (k *Kind) TestEnv() env.Environment
TestEnv returns the env.Environment object, useful for unit tests that need to interact with the Kubernetes API.
type Option ¶
type Option func(k *Kind)
Option that can be passed to the NewKind function in order to change the configuration of the test cluster
func Deploy ¶
Deploy can be passed to NewKind to deploy extra components, in addition to the base deployment.
func ExportLogs ¶
ExportLogs can be passed to NewKind to specify the folder where the kubernetes logs will be exported after the tests.
func KindConfig ¶
KindConfig can be passed to NewKind to override the default Kind cluster configuration.
func LocalImage ¶
LocalImage is passed to NewKind to allow loading a local Docker image into the cluster