Documentation ¶
Index ¶
- type ClusterOption
- func Retain(retain bool) ClusterOption
- func SetupKubernetes(setupKubernetes bool) ClusterOption
- func WaitForReady(interval time.Duration) ClusterOption
- func WithConfigFile(path string) ClusterOption
- func WithNodeImage(nodeImage string) ClusterOption
- func WithV1Alpha3(cluster *v1alpha3.Cluster) ClusterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterOption ¶
type ClusterOption func(*internaltypes.ClusterOptions) (*internaltypes.ClusterOptions, error)
ClusterOption is a cluster creation option
func Retain ¶
func Retain(retain bool) ClusterOption
Retain configures create to retain nodes after failing for debugging pourposes
func SetupKubernetes ¶
func SetupKubernetes(setupKubernetes bool) ClusterOption
SetupKubernetes configures create command to setup kubernetes after creating nodes containers TODO: Refactor this. It is a temporary solution for a phased breakdown of different
operations, specifically create. see https://github.com/kubernetes-sigs/kind/issues/324
func WaitForReady ¶
func WaitForReady(interval time.Duration) ClusterOption
WaitForReady configures create to use interval as maximum wait time for the control plane node to be ready
func WithConfigFile ¶ added in v0.5.0
func WithConfigFile(path string) ClusterOption
WithConfigFile configures creating the cluster using the config file at path
func WithNodeImage ¶ added in v0.5.0
func WithNodeImage(nodeImage string) ClusterOption
WithNodeImage overrides the image on all nodes in config as an easy way to change the Kubernetes version
func WithV1Alpha3 ¶ added in v0.5.0
func WithV1Alpha3(cluster *v1alpha3.Cluster) ClusterOption
WithV1Alpha3 configures creating the cluster with a v1alpha3 config