Documentation ¶
Index ¶
- Constants
- func CreateAndImportK3DCluster(client *rancher.Client, name, image, hostname string, servers, agents int, ...) (*apisV1.Cluster, error)
- func CreateK3DCluster(ts *session.Session, name, hostname string, servers, agents int) (*rest.Config, error)
- func DeleteK3DCluster(name string) error
- func ImportImage(image, clusterName string) error
- type Config
Constants ¶
View Source
const ConfigurationFileKey = "k3d"
The json/yaml config key for the k3d config
Variables ¶
This section is empty.
Functions ¶
func CreateAndImportK3DCluster ¶
func CreateAndImportK3DCluster(client *rancher.Client, name, image, hostname string, servers, agents int, importImage bool) (*apisV1.Cluster, error)
CreateAndImportK3DCluster creates a new k3d cluster and imports it into rancher.
func CreateK3DCluster ¶
func CreateK3DCluster(ts *session.Session, name, hostname string, servers, agents int) (*rest.Config, error)
CreateK3DCluster creates a minimal k3d cluster and returns a rest config for connecting to the newly created cluster. If a name is not given a random one will be generated.
func DeleteK3DCluster ¶
DeleteK3DCluster deletes the k3d cluster with the given name. An error is returned if the cluster does not exist.
func ImportImage ¶
ImportImage imports an image from docker into the specified k3d cluster. Meant to use local docker images without having to setup a registry.
Types ¶
Click to show internal directories.
Click to hide internal directories.