Documentation ¶
Index ¶
Constants ¶
View Source
const ( KindVersion = "v0.12.0-outreach.1" KindDownloadURL = "https://github.com/getoutreach/kind/releases/download/" + KindVersion + "/kind-" + runtime.GOOS + "-" + runtime.GOARCH KindClusterName = "dev-environment" )
Variables ¶
This section is empty.
Functions ¶
func EnsureKind ¶
func EnsureKind(log logrus.FieldLogger) (string, error)
EnsureKind ensures that Kind exists and returns the location of kind. Note: this outputs text if kind is being downloaded
func GetKubeConfig ¶
GetKubeConfig reads a kubeconfig from Kind and returns it This is based on the original shell hack, but a lot safer: "$kindPath" get kubeconfig --name "$(yq -r ".name" <"$LIBDIR/kind.yaml")"
| sed 's/kind-dev-environment/dev-environment/' >"$KUBECONFIG"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.