Documentation ¶
Index ¶
- func BuildDockerImage(path string, dockerfile string, tags []string) env.Func
- func CreateK3dCluster(clusterName string) env.Func
- func CreateK3dClusterWithConfig(clusterName, image, configFilePath string) env.Func
- func DestroyK3dCluster(name string) env.Func
- func LoadDockerImageToCluster(name, image string) env.Func
- func LoadImageArchiveToCluster(name, imageArchive string) env.Func
- type ErrorDetail
- type ErrorLine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDockerImage ¶
BuildDockerImage returns an env.Func that is used for building a docker image.
func CreateK3dCluster ¶
CreateK3dCluster returns an env.Func that is used to create a k3d 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 CreateK3dClusterWithConfig ¶
CreateK3dClusterWithConfig returns an env.Func that is used to create a k3d 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 DestroyK3dCluster ¶
DestroyK3dCluster returns an EnvFunc that retrieves a previously saved k3d Cluster in the context (using the name), then deletes it.
NOTE: this should be used in a Environment.Finish step.
func LoadDockerImageToCluster ¶
LoadDockerImageToCluster returns an EnvFunc that retrieves a previously saved k3d Cluster in the context (using the name), and then loads a docker image from the host into the cluster.
func LoadImageArchiveToCluster ¶
LoadImageArchiveToCluster returns an EnvFunc that retrieves a previously saved k3d Cluster in the context (using the name), and then loads a docker image TAR archive from the host into the cluster.
Types ¶
type ErrorDetail ¶
type ErrorDetail struct {
Message string `json:"message"`
}
type ErrorLine ¶
type ErrorLine struct { Error string `json:"error"` ErrorDetail ErrorDetail `json:"errorDetail"` }